diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-11-25 13:59:04 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-11-25 13:59:04 +0000 |
commit | 3936729479271dc84edf01e0ff840125a61eeb84 (patch) | |
tree | 1e673098843154d2ebb1194bcc4ed03023998596 /perllib/Catalyst/Authentication/Credential/2FA.pm | |
parent | 080f5f49e4ef63ad28070668dd8e4663692524ee (diff) | |
parent | 5ee12f1525fd928cb7af7558b61a2d0a001155bf (diff) |
Merge branch 'qr-code-generator'
Diffstat (limited to 'perllib/Catalyst/Authentication/Credential/2FA.pm')
-rw-r--r-- | perllib/Catalyst/Authentication/Credential/2FA.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/Catalyst/Authentication/Credential/2FA.pm b/perllib/Catalyst/Authentication/Credential/2FA.pm index 8b6771037..3f59ada06 100644 --- a/perllib/Catalyst/Authentication/Credential/2FA.pm +++ b/perllib/Catalyst/Authentication/Credential/2FA.pm @@ -2,7 +2,7 @@ package Catalyst::Authentication::Credential::2FA; use strict; use warnings; -use Auth::GoogleAuth; +use FixMyStreet::Auth::GoogleAuth; our $VERSION = "0.01"; @@ -52,8 +52,8 @@ sub authenticate { } if ($action eq 'activate') { - my $auth = Auth::GoogleAuth->new; - $c->stash->{qr_code} = $auth->qr_code($secret, $user_obj->email, 'FixMyStreet'); + my $auth = FixMyStreet::Auth::GoogleAuth->new; + $c->stash->{qr_code} = $auth->qr_code($secret, $user_obj->email, $c->cobrand->base_url); $c->stash->{secret32} = $auth->secret32; $c->stash->{stage} = 'activate'; } |