fix(captcha): 增加验证码缓存有效时间至300秒
Some checks failed
lotterLaravel CI / test (push) Has been cancelled
lotterLaravel E2E / e2e-api (push) Has been cancelled

This commit is contained in:
2026-07-08 14:18:01 +08:00
parent f0e0966a73
commit fbe182f6e6
2 changed files with 2 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ final class SettingIndexController extends Controller
/** @var list<string> */ /** @var list<string> */
private const PUBLIC_GROUPS = [ private const PUBLIC_GROUPS = [
'frontend', 'frontend',
'currency',
]; ];
public function __invoke(Request $request): JsonResponse public function __invoke(Request $request): JsonResponse

View File

@@ -20,7 +20,7 @@ final class AdminCaptchaService
self::SCOPE_PLAYER => 'player_captcha:', self::SCOPE_PLAYER => 'player_captcha:',
]; ];
private const TTL_SECONDS = 120; private const TTL_SECONDS = 300;
/** 剔除易混淆字符 */ /** 剔除易混淆字符 */
private const CHARSET = '23456789abcdefghjkmpqrstuvwxyz'; private const CHARSET = '23456789abcdefghjkmpqrstuvwxyz';