mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: password check limit
This commit is contained in:
parent
837701f20a
commit
a77523c3b5
@ -193,7 +193,7 @@ class AuthController extends Controller
|
|||||||
$passwordErrorCount = (int)Cache::get(CacheKey::get('PASSWORD_ERROR_LIMIT', $email)) || 0;
|
$passwordErrorCount = (int)Cache::get(CacheKey::get('PASSWORD_ERROR_LIMIT', $email)) || 0;
|
||||||
|
|
||||||
if ($passwordErrorCount >= 5) {
|
if ($passwordErrorCount >= 5) {
|
||||||
abort(500, __('Incorrect email or password'));
|
abort(500, __('There are too many password errors, please try again after 30 minutes.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = User::where('email', $email)->first();
|
$user = User::where('email', $email)->first();
|
||||||
|
Loading…
Reference in New Issue
Block a user