aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-02-07 16:01:49 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-02-07 16:01:54 +0000
commitd1f04a07b1eb2f24a065a26320350977a10b400f (patch)
tree312ecbfe686ff26b94bd55207add035d86ac282a
parent7361782de3d072f8d09442e33aa9c42a7c181c4c (diff)
Increase two-factor skew to 2 time periods.
-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;