mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 23:16:38 +08:00
UX: Separate section for 2FA settings, more consistent layout
This commit is contained in:
parent
648af78298
commit
3388872991
@ -80,32 +80,38 @@
|
|||||||
|
|
||||||
{{passwordProgress}}
|
{{passwordProgress}}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group pref-second-factor">
|
||||||
|
<label class="control-label">{{i18n 'user.second_factor.title'}}</label>
|
||||||
|
{{#unless model.second_factor_enabled}}
|
||||||
|
<label>
|
||||||
|
{{i18n 'user.second_factor.short_description'}}
|
||||||
|
</label>
|
||||||
|
{{/unless}}
|
||||||
<div class="controls pref-second-factor">
|
<div class="controls pref-second-factor">
|
||||||
{{#if model.second_factor_enabled}}
|
|
||||||
{{i18n 'user.second_factor.disable'}}
|
|
||||||
{{else}}
|
|
||||||
{{i18n 'user.second_factor.enable'}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if isCurrentUser}}
|
{{#if isCurrentUser}}
|
||||||
{{#link-to "preferences.second-factor" class="btn btn-default btn-small btn-icon pad-left no-text"}}
|
{{#if model.second_factor_enabled}}
|
||||||
{{d-icon "pencil-alt"}}
|
{{#link-to "preferences.second-factor" class="btn btn-default"}}
|
||||||
|
{{d-icon "unlock"}} {{i18n 'user.second_factor.disable'}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
|
{{else}}
|
||||||
|
{{#link-to "preferences.second-factor" class="btn btn-default"}}
|
||||||
|
{{d-icon "lock"}} {{i18n 'user.second_factor.enable'}}
|
||||||
|
{{/link-to}}
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="controls pref-second-factor-backup">
|
<div class="controls pref-second-factor-backup">
|
||||||
{{#if model.second_factor_enabled}}
|
{{#if model.second_factor_enabled}}
|
||||||
|
{{#if isCurrentUser}}
|
||||||
|
{{#link-to "preferences.second-factor-backup"}}
|
||||||
{{#if model.second_factor_backup_enabled}}
|
{{#if model.second_factor_backup_enabled}}
|
||||||
{{i18n 'user.second_factor_backup.manage'}}
|
{{i18n 'user.second_factor_backup.manage'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{i18n 'user.second_factor_backup.enable_long'}}
|
{{i18n 'user.second_factor_backup.enable_long'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isCurrentUser}}
|
|
||||||
{{#link-to "preferences.second-factor-backup" class="btn btn-default btn-small btn-icon pad-left no-text"}}
|
|
||||||
{{d-icon "pencil-alt"}}
|
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -924,8 +924,8 @@ en:
|
|||||||
|
|
||||||
second_factor:
|
second_factor:
|
||||||
title: "Two Factor Authentication"
|
title: "Two Factor Authentication"
|
||||||
disable: "Disable two factor authentication"
|
disable: "Disable Two Factor Authentication"
|
||||||
enable: "Enable two factor authentication for enhanced account security"
|
enable: "Enable Two Factor Authentication"
|
||||||
confirm_password_description: "Please confirm your password to continue"
|
confirm_password_description: "Please confirm your password to continue"
|
||||||
label: "Code"
|
label: "Code"
|
||||||
rate_limit: "Please wait before trying another authentication code."
|
rate_limit: "Please wait before trying another authentication code."
|
||||||
@ -933,6 +933,8 @@ en:
|
|||||||
Scan this QR code in a supported app (<a href="https://www.google.com/search?q=authenticator+apps+for+android" target="_blank">Android</a> – <a href="https://www.google.com/search?q=authenticator+apps+for+ios" target="_blank">iOS</a>) and enter your authentication code.
|
Scan this QR code in a supported app (<a href="https://www.google.com/search?q=authenticator+apps+for+android" target="_blank">Android</a> – <a href="https://www.google.com/search?q=authenticator+apps+for+ios" target="_blank">iOS</a>) and enter your authentication code.
|
||||||
disable_description: "Please enter the authentication code from your app"
|
disable_description: "Please enter the authentication code from your app"
|
||||||
show_key_description: "Enter manually"
|
show_key_description: "Enter manually"
|
||||||
|
short_description: |
|
||||||
|
Protect your account with one-time use security codes.
|
||||||
extended_description: |
|
extended_description: |
|
||||||
Two factor authentication adds extra security to your account by requiring a one-time token in addition to your password. Tokens can be generated on <a href="https://www.google.com/search?q=authenticator+apps+for+android" target='_blank'>Android</a> and <a href="https://www.google.com/search?q=authenticator+apps+for+ios">iOS</a> devices.
|
Two factor authentication adds extra security to your account by requiring a one-time token in addition to your password. Tokens can be generated on <a href="https://www.google.com/search?q=authenticator+apps+for+android" target='_blank'>Android</a> and <a href="https://www.google.com/search?q=authenticator+apps+for+ios">iOS</a> devices.
|
||||||
oauth_enabled_warning: "Please note that social logins will be disabled once two factor authentication has been enabled on your account."
|
oauth_enabled_warning: "Please note that social logins will be disabled once two factor authentication has been enabled on your account."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user