mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update: password check limit
This commit is contained in:
		| @@ -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')); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user