mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
mfa strings update
This commit is contained in:
@@ -105,6 +105,7 @@ class Account {
|
||||
'$password1' => array('npassword', t('Enter New Password'), '', ''),
|
||||
'$password2' => array('confirm', t('Confirm New Password'), '', t('Leave password fields blank unless changing')),
|
||||
'$submit' => t('Submit'),
|
||||
'$mfa' => t('Multi-Factor Authentication'),
|
||||
'$email' => array('email', t('DId2 or Email Address:'), $email, '', '', $attremail),
|
||||
'$email_hidden' => (($attremail) ? $email : ''),
|
||||
'$removeme' => t('Remove Account'),
|
||||
|
||||
@@ -51,10 +51,9 @@ class Multifactor {
|
||||
return replace_macros(get_markup_template('totp_setup.tpl'),
|
||||
[
|
||||
'$form_security_token' => get_form_security_token("settings_mfa"),
|
||||
'$title' => t(' Account Multifactor Settings'),
|
||||
'$totp_setup_text' => t('Multi-Factor Authentication Setup'),
|
||||
'$secret_text' => t('This is your generated secret. It may be used in some cases if the QR image cannot be read. Please save it.'),
|
||||
'$test_title' => t('Please enter the code from your authenticator'),
|
||||
'$title' => t('Account Multi-Factor Authentication'),
|
||||
'$secret_text' => t('This is your generated secret. It may be used in some cases if the QR image cannot be read. Please store it in a safe place.'),
|
||||
'$test_title' => t('Please enter the code from your authenticator app'),
|
||||
'$test_title_sub' => t('You will only be able to enable MFA if the test passes'),
|
||||
'$qrcode' => (new QRCode())->render($uri),
|
||||
'$uri' => $uri,
|
||||
@@ -63,9 +62,9 @@ class Multifactor {
|
||||
'$test_fail' => t("Incorrect code."),
|
||||
'$enable_mfa' => [
|
||||
'enable_mfa',
|
||||
t('Enable Multi-factor Authentication'),
|
||||
t('Enable Multi-Factor Authentication'),
|
||||
AConfig::Get($account['account_id'], 'system', 'mfa_enabled'),
|
||||
'',
|
||||
t('Logging in will require you to be in possession of your smartphone with an authenticator app'),
|
||||
[t('No'), t('Yes')]
|
||||
],
|
||||
'$submit' => t('Submit'),
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button>
|
||||
<a href="/settings/multifactor" class="btn btn-outline-success">Configure MFA</a>
|
||||
<a href="/settings/multifactor" class="btn btn-outline-success">{{$mfa}}</a>
|
||||
</div>
|
||||
{{$account_settings}}
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{{if $secret}}
|
||||
<div class="section-content-info-wrapper">
|
||||
<div>{{$secret_text}}</div>
|
||||
<div><strong>{{$secret}}</strong></div>
|
||||
<div><strong class="text-break">{{$secret}}</strong></div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<img src="{{$qrcode}}" alt="{{$uri}}" title="{{$uri}}">
|
||||
@@ -17,7 +17,7 @@
|
||||
<input type="text" id="totp_test" class="form-control" onfocus="totp_clear_code()"/>
|
||||
<small class="text-muted">{{$test_title_sub}}</small>
|
||||
</div>
|
||||
<button id="otp-test-submit" type="submit" name="submit" class="btn btn-primary" onclick="totp_test_code(); return false;">
|
||||
<button id="otp-test-submit" type="submit" name="submit" class="btn btn-outline-primary" onclick="totp_test_code(); return false;">
|
||||
{{$test}}
|
||||
</button>
|
||||
<div class="">
|
||||
|
||||
Reference in New Issue
Block a user