update: password check limit

This commit is contained in:
tokumeikoi 2022-12-14 23:00:35 +08:00
parent c36a54dae2
commit 125a882a7e

View File

@ -190,7 +190,7 @@ class AuthController extends Controller
$email = $request->input('email');
$password = $request->input('password');
$passwordErrorCount = (int)Cache::get('PASSWORD_ERROR_LIMIT') || 0;
$passwordErrorCount = (int)Cache::get(CacheKey::get('PASSWORD_ERROR_LIMIT', $email)) || 0;
if ($passwordErrorCount >= 5) {
abort(500, __('Incorrect email or password'));