aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Catalyst
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/Catalyst')
-rw-r--r--perllib/Catalyst/Authentication/Credential/2FA.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/Catalyst/Authentication/Credential/2FA.pm b/perllib/Catalyst/Authentication/Credential/2FA.pm
index 6cb1dd297..428a3668c 100644
--- a/perllib/Catalyst/Authentication/Credential/2FA.pm
+++ b/perllib/Catalyst/Authentication/Credential/2FA.pm
@@ -55,7 +55,7 @@ sub check_2fa {
if (my $code = $c->get_param('2fa_code')) {
my $auth = Auth::GoogleAuth->new;
my $secret32 = $user->get_extra_metadata('2fa_secret');
- return 1 if $auth->verify($code, 1, $secret32);
+ return 1 if $auth->verify($code, 2, $secret32);
$c->stash->{incorrect_code} = 1;
}
return 0;