mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix regression error in cookie queue
This commit is contained in:
parent
e3eb550581
commit
abd503543b
@ -121,7 +121,7 @@ class LoginController extends Controller
|
|||||||
|
|
||||||
// Copied directly from AuthenticatesUsers, but with logging added:
|
// Copied directly from AuthenticatesUsers, but with logging added:
|
||||||
// If the login attempt was unsuccessful we will increment the number of attempts
|
// If the login attempt was unsuccessful we will increment the number of attempts
|
||||||
// to login and redirect the user back to the login form. Of course, when this
|
// to log in and redirect the user back to the login form. Of course, when this
|
||||||
// user surpasses their maximum number of attempts they will get locked out.
|
// user surpasses their maximum number of attempts they will get locked out.
|
||||||
$this->incrementLoginAttempts($request);
|
$this->incrementLoginAttempts($request);
|
||||||
Log::channel('audit')->warning(sprintf('Login failed. Attempt for user "%s" failed.', $request->get($this->username())));
|
Log::channel('audit')->warning(sprintf('Login failed. Attempt for user "%s" failed.', $request->get($this->username())));
|
||||||
@ -233,7 +233,7 @@ class LoginController extends Controller
|
|||||||
$storeInCookie = config('google2fa.store_in_cookie', false);
|
$storeInCookie = config('google2fa.store_in_cookie', false);
|
||||||
if (false !== $storeInCookie) {
|
if (false !== $storeInCookie) {
|
||||||
$cookieName = config('google2fa.cookie_name', 'google2fa_token');
|
$cookieName = config('google2fa.cookie_name', 'google2fa_token');
|
||||||
request()->cookies->set($cookieName, 'invalid');
|
Cookie::queue(Cookie::make($cookieName, 'invalid-'.time()));
|
||||||
}
|
}
|
||||||
$usernameField = $this->username();
|
$usernameField = $this->username();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user