Преглед на файлове

Authentication - TOTP: Add description.

fusionate преди 2 години
родител
ревизия
fefbe9a152
променени са 3 файла, в които са добавени 31 реда и са изтрити 2 реда
  1. 26 0
      core/authentication/app_languages.php
  2. 1 0
      core/authentication/resources/classes/plugins/totp.php
  3. 4 2
      core/authentication/resources/views/totp.htm

+ 26 - 0
core/authentication/app_languages.php

@@ -78,6 +78,32 @@ $text['label-email_description']['zh-cn'] = "检查您的电子邮件以获取
 $text['label-email_description']['ja-jp'] = "メールで確認コードを確認してください。";
 $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-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'] = "امسح الرمز ضوئيًا باستخدام تطبيق المصادقة أو مدير كلمات المرور. ثم استخدمه لإنشاء الرمز المميز لتسجيل الدخول.";

+ 1 - 0
core/authentication/resources/classes/plugins/totp.php

@@ -169,6 +169,7 @@ class plugin_totp {
 				$view->assign("login_destination_url", $settings['login']['destination']);
 				$view->assign("favicon", $settings['theme']['favicon']);
 				$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_logo_width", $settings['theme']['login_logo_width']);
 				$view->assign("login_logo_height", $settings['theme']['login_logo_height']);

+ 4 - 2
core/authentication/resources/views/totp.htm

@@ -14,8 +14,10 @@
 			<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 />
 				<form method='post' name='frm' action=''>
-					<div>
-						<input class='formfld' type='text' style='text-align: center;' name='authentication_code' maxlength='255' placeholder="{$login_authentication_code}" />
+					<div class='login_text'>
+						{$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>
 						<input type='submit' name='' class='btn' style='width: 100px; margin-top: 15px;' value='{$button_verify}' />