|
@@ -30,7 +30,7 @@ |
|
|
block discarded – undo |
|
30
|
30
|
|
|
31
|
31
|
if (false === $cookieResult && true === $authResult) { |
|
32
|
32
|
$cookieName = config('google2fa.cookie_name') ?? 'google2fa_token'; |
|
33
|
|
- $lifetime = (int)(config('google2fa.cookie_lifetime') ?? 8035200); |
|
|
33
|
+ $lifetime = (int) (config('google2fa.cookie_lifetime') ?? 8035200); |
|
34
|
34
|
$lifetime = $lifetime > 8035200 ? 8035200 : $lifetime; |
|
35
|
35
|
$token = $authenticator->sessionGet(Constants::SESSION_TOKEN); |
|
36
|
36
|
$response->withCookie(cookie()->make($cookieName, $token, $lifetime / 60)); |
Please login to merge, or discard this patch.