AO3-7442 Add TOTP 2FA to users - #5823
Conversation
pmonfort
left a comment
There was a problem hiding this comment.
Thanks for working on this! I left a few comments
|
|
||
| session[:otp_user_id] = user.id | ||
|
|
||
| session[:pwned] = user.respond_to?(:password_pwned?) && user.password_pwned?(user_params[:password]) if params[:user] && params[:user][:password] |
There was a problem hiding this comment.
Could you try to keep lines to 80 characters max? There are several lines over 100 characters in the PR.
lydia-theda
left a comment
There was a problem hiding this comment.
Back in May I took a quick look at the message wording so here are those comments.
|
|
||
| serialize :otp_backup_codes, type: Array, coder: YAML, yaml: { permitted_classes: [String] } | ||
|
|
||
| # Generate a TOTP secret it it does not already exist |
There was a problem hiding this comment.
| # Generate a TOTP secret it it does not already exist | |
| # Generate a TOTP secret if it does not already exist |
| create: | ||
| incorrect_code: Incorrect verification code. Your code may have expired, or you may need to set up your authenticator app again. | ||
| page_title: Two-Step Verification Backup Codes | ||
| success: Successfully enabled two-step verification; please make note of your backup codes. |
There was a problem hiding this comment.
In the interest of being explicitly clear to users, I think we should change "make note of" to more closely mirror the language used elsewhere about saving the backup codes. Something more like this?
(I haven't checked whether .write_codes_down appears on this same page, or if this particular phrasing will conflict with anything else. But a word like "save" is more clear than "note".)
| success: Successfully enabled two-step verification; please make note of your backup codes. | |
| success: Two-step verification was successfully enabled. Please save your backup codes in case you lose access to your authenticator app. |
| reset_backup_codes: | ||
| not_enabled: Please enable two-step verification first. | ||
| page_title: Two-Step Verification Backup Codes | ||
| success: Successfully reset your backup codes; please make note of your new backup codes, your old backup codes will no longer work. |
There was a problem hiding this comment.
An initial attempt at aligning the wording with other messages across the site:
| success: Successfully reset your backup codes; please make note of your new backup codes, your old backup codes will no longer work. | |
| success: Your backup codes have been successfully regenerated. Please save your new backup codes, as your old backup codes will no longer work. |
| heading: About Two-Step Verification | ||
| app_setup: | ||
| heading: 'Step 1: Set up your authenticator app' | ||
| instructions: Use your authenticator app to scan the QR code or enter the manual setup key. If you are using the same device the app is installed on, click the import settings button. The app will give you a 6-digit code, which you'll use in the next step. |
There was a problem hiding this comment.
Let's try to avoid the use of plain "app", because there are many people who use that word to refer to AO3.
| instructions: Use your authenticator app to scan the QR code or enter the manual setup key. If you are using the same device the app is installed on, click the import settings button. The app will give you a 6-digit code, which you'll use in the next step. | |
| instructions: Use your authenticator app to scan the QR code or enter the manual setup key. If you are using the same device your authenticator app is installed on, click the import settings button. The authenticator app will give you a 6-digit code, which you'll use in the next step. |
| qr_scan_note: Scan with your authenticator app | ||
| enter_code: | ||
| heading: 'Step 2: Enter your 6-digit code' | ||
| instructions: Enter the 6-digit code from your app to enable two-step verification. |
There was a problem hiding this comment.
| instructions: Enter the 6-digit code from your app to enable two-step verification. | |
| instructions: Enter the 6-digit code from your authenticator app to enable two-step verification. |
Pull Request Checklist
as the first thing in your pull request title (e.g.
AO3-1234 Fix thing)until they are reviewed and merged before creating new pull requests.
Issue
https://otwarchive.atlassian.net/browse/AO3-7442
Credit
EchoEkhi (He/Him)