@ -3,44 +3,46 @@
{{> header sectionName="Security"}}
< div class = "preferences-page__content" >
< form id = "security" autocomplete = "off" class = "container" >
< fieldset >
< div class = "section" >
< h1 > {{_ "Two-factor_authentication"}}< / h1 >
< div class = "section-content border-component-color" >
{{#if isEnabled}}
< button class = "button danger disable-2fa" > {{_ "Disable_two-factor_authentication"}}< / button >
{{else}}
{{#unless isRegistering}}
< p > {{_ "Two-factor_authentication_is_currently_disabled"}}< / p >
< button class = "button primary enable-2fa" > {{_ "Enable_two-factor_authentication"}}< / button >
{{# if isAllowed}}
< fieldset >
< div class = "section" >
< h1 > {{_ "Two-factor_authentication"}}< / h1 >
< div class = "section-content border-component-color" >
{{#if isEnabled}}
< button class = "button danger disable-2fa" > {{_ "Disable_two-factor_authentication"}}< / button >
{{else}}
< p > {{_ "Scan_QR_code"}}< / p >
< p > {{_ "Scan_QR_code_alternative_s" code=imageSecret}}< / p >
< img src = "{{imageData}}" >
{{#unless isRegistering}}
< p > {{_ "Two-factor_authentication_is_currently_disabled"}}< / p >
< form class = "inline" >
< input type = "text" class = "rc-input__element" id = "testCode" placeholder = "{{_ " Enter_authentication_code " } } " >
< button class = "button primary verify-code" > {{_ "Verify"}}< / button >
< / form >
{{/unless}}
{{/if}}
< / div >
< / div >
< / fieldset >
< button class = "button primary enable-2fa" > {{_ "Enable_two-factor_authentication"}}< / button >
{{else}}
< p > {{_ "Scan_QR_code"}}< / p >
< p > {{_ "Scan_QR_code_alternative_s" code=imageSecret}}< / p >
< img src = "{{imageData}}" >
{{#if isEnabled}}
< fieldset >
< div class = "section" >
< h1 > {{_ "Backup_codes"}}< / h1 >
< div class = "section-content border-component-color" >
< p > {{codesRemaining}}< / p >
< button class = "button regenerate-codes" > {{_ "Regenerate_codes"}}< / button >
< form class = "inline" >
< input type = "text" class = "rc-input__element" id = "testCode" placeholder = "{{_ " Enter_authentication_code " } } " >
< button class = "button primary verify-code" > {{_ "Verify"}}< / button >
< / form >
{{/unless}}
{{/if}}
< / div >
< / div >
< / fieldset >
{{#if isEnabled}}
< fieldset >
< div class = "section" >
< h1 > {{_ "Backup_codes"}}< / h1 >
< div class = "section-content border-component-color" >
< p > {{codesRemaining}}< / p >
< button class = "button regenerate-codes" > {{_ "Regenerate_codes"}}< / button >
< / div >
< / div >
< / fieldset >
{{/if}}
{{/if}}
< / form >
< / div >