diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-02-07 16:01:49 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-02-07 16:01:54 +0000 |
commit | d1f04a07b1eb2f24a065a26320350977a10b400f (patch) | |
tree | 312ecbfe686ff26b94bd55207add035d86ac282a /perllib/Catalyst | |
parent | 7361782de3d072f8d09442e33aa9c42a7c181c4c (diff) |
Increase two-factor skew to 2 time periods.
Diffstat (limited to 'perllib/Catalyst')
-rw-r--r-- | perllib/Catalyst/Authentication/Credential/2FA.pm | 2 |
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; |