Authentication - TOTP: Add description.

This commit is contained in:
fusionate 2023-06-23 17:47:31 +00:00
parent d17265c3ec
commit 71d6415d06
No known key found for this signature in database
3 changed files with 31 additions and 2 deletions

View File

@ -78,6 +78,32 @@ $text['label-email_description']['zh-cn'] = "检查您的电子邮件以获取
$text['label-email_description']['ja-jp'] = "メールで確認コードを確認してください。"; $text['label-email_description']['ja-jp'] = "メールで確認コードを確認してください。";
$text['label-email_description']['ko-kr'] = "이메일에서 확인 코드를 확인하세요."; $text['label-email_description']['ko-kr'] = "이메일에서 확인 코드를 확인하세요.";
$text['label-totp_description']['en-us'] = "Enter your verification code.";
$text['label-totp_description']['en-gb'] = "Enter your verification code.";
$text['label-totp_description']['ar-eg'] = "أدخل رمز التحقق الخاص بك.";
$text['label-totp_description']['de-at'] = "Geben Sie Ihren Bestätigungs-Code ein.";
$text['label-totp_description']['de-ch'] = "Geben Sie Ihren Bestätigungs-Code ein.";
$text['label-totp_description']['de-de'] = "Geben Sie Ihren Bestätigungs-Code ein.";
$text['label-totp_description']['el-gr'] = "Εισαγάγετε τον κωδικό επαλήθευσης.";
$text['label-totp_description']['es-cl'] = "Ingrese su código de verificación.";
$text['label-totp_description']['es-mx'] = "Ingrese su código de verificación.";
$text['label-totp_description']['fr-ca'] = "Entrez votre code de vérification.";
$text['label-totp_description']['fr-fr'] = "Entrez votre code de vérification.";
$text['label-totp_description']['he-il'] = "הזן את קוד האימות שלך.";
$text['label-totp_description']['it-it'] = "Inserisci il tuo codice di verifica.";
$text['label-totp_description']['nl-nl'] = "Voer uw verificatie code in.";
$text['label-totp_description']['pl-pl'] = "Wpisz swój kod weryfikacyjny.";
$text['label-totp_description']['pt-br'] = "Digite seu código de verificação.";
$text['label-totp_description']['pt-pt'] = "Digite seu código de verificação.";
$text['label-totp_description']['ro-ro'] = "Introdu codul de verificare.";
$text['label-totp_description']['ru-ru'] = "Введите Ваш верификационный код.";
$text['label-totp_description']['sv-se'] = "Skriv In Din Verifikationskod.";
$text['label-totp_description']['uk-ua'] = "Введіть код підтвердження.";
$text['label-totp_description']['tr-tr'] = "Doğrulama kodunuzu girin.";
$text['label-totp_description']['zh-cn'] = "輸入您的驗證碼。";
$text['label-totp_description']['ja-jp'] = "確認コードを入力してください。";
$text['label-totp_description']['ko-kr'] = "인증 코드를 입력하세요.";
$text['description-totp']['en-us'] = "Scan the code with an authentication application or password manager. Then use it to generate the token for the login."; $text['description-totp']['en-us'] = "Scan the code with an authentication application or password manager. Then use it to generate the token for the login.";
$text['description-totp']['en-gb'] = "Scan the code with an authentication application or password manager. Then use it to generate the token for the login."; $text['description-totp']['en-gb'] = "Scan the code with an authentication application or password manager. Then use it to generate the token for the login.";
$text['description-totp']['ar-eg'] = "امسح الرمز ضوئيًا باستخدام تطبيق المصادقة أو مدير كلمات المرور. ثم استخدمه لإنشاء الرمز المميز لتسجيل الدخول."; $text['description-totp']['ar-eg'] = "امسح الرمز ضوئيًا باستخدام تطبيق المصادقة أو مدير كلمات المرور. ثم استخدمه لإنشاء الرمز المميز لتسجيل الدخول.";

View File

@ -169,6 +169,7 @@ class plugin_totp {
$view->assign("login_destination_url", $settings['login']['destination']); $view->assign("login_destination_url", $settings['login']['destination']);
$view->assign("favicon", $settings['theme']['favicon']); $view->assign("favicon", $settings['theme']['favicon']);
$view->assign("login_title", $text['label-verify']); $view->assign("login_title", $text['label-verify']);
$view->assign("login_totp_description", $text['label-totp_description']);
$view->assign("login_authentication_code", $text['label-authentication_code']); $view->assign("login_authentication_code", $text['label-authentication_code']);
$view->assign("login_logo_width", $settings['theme']['login_logo_width']); $view->assign("login_logo_width", $settings['theme']['login_logo_width']);
$view->assign("login_logo_height", $settings['theme']['login_logo_height']); $view->assign("login_logo_height", $settings['theme']['login_logo_height']);

View File

@ -14,8 +14,10 @@
<div id='default_login'> <div id='default_login'>
<a href='{$project_path}/'><img id='login_logo' style='width: {$login_logo_width}; height: {$login_logo_height};' src='{$login_logo_source}' /></a><br /> <a href='{$project_path}/'><img id='login_logo' style='width: {$login_logo_width}; height: {$login_logo_height};' src='{$login_logo_source}' /></a><br />
<form method='post' name='frm' action=''> <form method='post' name='frm' action=''>
<div> <div class='login_text'>
<input class='formfld' type='text' style='text-align: center;' name='authentication_code' maxlength='255' placeholder="{$login_authentication_code}" /> {$login_totp_description}
<br /><br />
<input class='formfld' type='text' style='text-align: center; min-width: 200px; width: 200px; margin-bottom: 8px;' name='authentication_code' maxlength='255' placeholder="{$login_authentication_code}" />
</div> </div>
<div> <div>
<input type='submit' name='' class='btn' style='width: 100px; margin-top: 15px;' value='{$button_verify}' /> <input type='submit' name='' class='btn' style='width: 100px; margin-top: 15px;' value='{$button_verify}' />