diff options
author | Byron Jones <glob@mozilla.com> | 2015-10-12 18:49:00 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-10-12 18:49:00 +0200 |
commit | d69cebd8c703f0a1f6839944f1c949bce350b02e (patch) | |
tree | 0c38317335ffe054597a56e281160fb7bcc8ebfb /Bugzilla/MFA/TOTP.pm | |
parent | 07791e2b9be26347cd3e7bbb8a5f004211841908 (diff) | |
download | bugzilla-d69cebd8c703f0a1f6839944f1c949bce350b02e.tar.gz bugzilla-d69cebd8c703f0a1f6839944f1c949bce350b02e.tar.xz |
Bug 1199089 - add support for duo-security
Diffstat (limited to 'Bugzilla/MFA/TOTP.pm')
-rw-r--r-- | Bugzilla/MFA/TOTP.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Bugzilla/MFA/TOTP.pm b/Bugzilla/MFA/TOTP.pm index 64efcfc8d..36791da15 100644 --- a/Bugzilla/MFA/TOTP.pm +++ b/Bugzilla/MFA/TOTP.pm @@ -16,6 +16,10 @@ use Bugzilla::Util qw( template_var generate_random_password ); use GD::Barcode::QRcode; use MIME::Base64 qw( encode_base64 ); +sub can_verify_inline { + return 1; +} + sub _auth { my ($self) = @_; return Auth::GoogleAuth->new({ @@ -25,7 +29,7 @@ sub _auth { }); } -sub enroll { +sub enroll_api { my ($self) = @_; # create a new secret for the user @@ -65,7 +69,7 @@ sub check { ThrowUserError('mfa_totp_bad_enrolment_code'); } else { - ThrowUserError('mfa_totp_bad_code'); + ThrowUserError('mfa_bad_code'); } } |