Closed
Bug 1199090
Opened 10 years ago
Closed 9 years ago
add printable recovery 2fa codes
Categories
(bugzilla.mozilla.org :: General, defect, P2)
Tracking
()
RESOLVED
FIXED
People
(Reporter: glob, Assigned: glob)
References
Details
Attachments
(1 file, 1 obsolete file)
15.37 KB,
patch
|
dylan
:
review+
|
Details | Diff | Splinter Review |
add printable recovery 2fa codes
- add ability to generate codes
- allows codes to be used anywhere 2fa is required
- minor fixes (uninit warnings, printing tweaks)
Attachment #8664662 -
Flags: review?(dylan)
Comment 2•9 years ago
|
||
Comment on attachment 8664662 [details] [diff] [review]
1199090_1.patch
Review of attachment 8664662 [details] [diff] [review]:
-----------------------------------------------------------------
r- because inconsistent calling convention of verify_check() -- in one place it is called with no arguments,
and in another with arguments. The behavior seems fine but I'd like that to be fixed before I finish reviewing it.
::: Bugzilla/MFA.pm
@@ +90,5 @@
> +}
> +
> +# methods
> +
> +sub generate_recovery_codes {
nit 1: I don't think we really need three loops here.
nit 2: the first loop doesn't conform to our usual coding conventions.
::: userprefs.cgi
@@ +675,5 @@
> clear_settings_cache(Bugzilla->user->id);
> }
> +
> + elsif ($action eq 'recovery') {
> + $user->mfa_provider->verify_check(Bugzilla->input_params);
Argument passed to method is not used.
@@ +686,2 @@
> else {
> + $user->mfa_provider->verify_check(Bugzilla->input_params);
Argument passed to method is not used by method.
Attachment #8664662 -
Flags: review?(dylan) → review-
- actually use the passed param
- simplify code generation
Attachment #8664662 -
Attachment is obsolete: true
Attachment #8665259 -
Flags: review?(dylan)
Comment 4•9 years ago
|
||
Comment on attachment 8665259 [details] [diff] [review]
1199090_2.patch
Review of attachment 8665259 [details] [diff] [review]:
-----------------------------------------------------------------
r=dylan
Attachment #8665259 -
Flags: review?(dylan) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
87c32cb..05fed61 master -> master
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•