update: password check limit

This commit is contained in:
tokumeikoi 2022-12-14 23:01:18 +08:00
parent 125a882a7e
commit 837701f20a

View File

@ -206,7 +206,6 @@ class AuthController extends Controller
$password, $password,
$user->password) $user->password)
) { ) {
$passwordErrorCount = Cache::get('PASSWORD_ERROR_LIMIT') || 0;
Cache::put( Cache::put(
CacheKey::get('PASSWORD_ERROR_LIMIT', $email), CacheKey::get('PASSWORD_ERROR_LIMIT', $email),
(int)$passwordErrorCount + 1, (int)$passwordErrorCount + 1,