update: install default secure path

This commit is contained in:
tokumeikoi
2022-12-15 01:58:01 +08:00
parent e57c09438a
commit 0768392b24
4 changed files with 7 additions and 5 deletions

View File

@ -190,7 +190,7 @@ class AuthController extends Controller
$email = $request->input('email');
$password = $request->input('password');
$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) {
abort(500, __('There are too many password errors, please try again after 30 minutes.'));