mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Fix logout link on 2FA verification page
This commit is contained in:
parent
45c9ce5eb0
commit
f3dba54179
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class TwoFactorAuth
|
||||||
$enabled = (bool) $user->{'2fa_enabled'};
|
$enabled = (bool) $user->{'2fa_enabled'};
|
||||||
if($enabled != false) {
|
if($enabled != false) {
|
||||||
$checkpoint = 'i/auth/checkpoint';
|
$checkpoint = 'i/auth/checkpoint';
|
||||||
if($request->session()->has('2fa.session.active') !== true && !$request->is($checkpoint))
|
if($request->session()->has('2fa.session.active') !== true && !$request->is($checkpoint) && !$request->is('logout'))
|
||||||
{
|
{
|
||||||
return redirect('/i/auth/checkpoint');
|
return redirect('/i/auth/checkpoint');
|
||||||
} elseif($request->session()->has('2fa.attempts') && (int) $request->session()->get('2fa.attempts') > 3) {
|
} elseif($request->session()->has('2fa.attempts') && (int) $request->session()->get('2fa.attempts') > 3) {
|
||||||
|
|
Loading…
Reference in a new issue