diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-11-22 19:07:26 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-11-23 14:52:02 +0000 |
commit | 5ee12f1525fd928cb7af7558b61a2d0a001155bf (patch) | |
tree | 1f6cedb8abbde5ffa049289aa4995a9ad51e4486 /perllib/Catalyst/Authentication | |
parent | 09026f609ce28860d555967e0f5d7cd833fb20d0 (diff) |
Switch to internal QR code generator.
Diffstat (limited to 'perllib/Catalyst/Authentication')
-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'; } |