diff --git a/core/authentication/app_languages.php b/core/authentication/app_languages.php
index d5be10acc9..30b58432e1 100644
--- a/core/authentication/app_languages.php
+++ b/core/authentication/app_languages.php
@@ -162,4 +162,31 @@ $text['description-totp']['zh-cn'] = "载有认证申请或密码管理员的编
$text['description-totp']['ja-jp'] = "認証アプリケーションまたはパスワードマネージャでコードをスキャンします。 ログイン時にトークンを生成します。";
$text['description-totp']['ko-kr'] = "인증 신청서 또는 비밀번호 관리자로 코드를 스캔합니다. 그런 다음 로그인 토큰을 생성합니다.";
+$text['button-forgot_password']['en-us'] = "Forgot Password?";
+$text['button-forgot_password']['en-gb'] = "Forgot Password?";
+$text['button-forgot_password']['ar-eg'] = "هل نسيت كلمة المرور؟";
+$text['button-forgot_password']['de-at'] = "Passwort vergessen?";
+$text['button-forgot_password']['de-ch'] = "Passwort vergessen?";
+$text['button-forgot_password']['de-de'] = "Passwort vergessen?";
+$text['button-forgot_password']['el-gr'] = "Ξεχάσατε τον κωδικό σας;";
+$text['button-forgot_password']['es-cl'] = "¿Olvidó su contraseña?";
+$text['button-forgot_password']['es-mx'] = "¿Olvidó su contraseña?";
+$text['button-forgot_password']['fr-ca'] = "Mot de passe oublié ?";
+$text['button-forgot_password']['fr-fr'] = "Mot de passe oublié ?";
+$text['button-forgot_password']['he-il'] = "שכחת את הסיסמה שלך؟";
+$text['button-forgot_password']['it-it'] = "Password dimenticata?";
+$text['button-forgot_password']['ka-ge'] = "დაგიფარგებათ პაროლი?";
+$text['button-forgot_password']['nl-nl'] = "Wachtwoord vergeten?";
+$text['button-forgot_password']['pl-pl'] = "Zapomniałeś hasła?";
+$text['button-forgot_password']['pt-br'] = "Esqueceu a senha?";
+$text['button-forgot_password']['pt-pt'] = "Esqueceu a password?";
+$text['button-forgot_password']['ro-ro'] = "Ați uitat parola?";
+$text['button-forgot_password']['ru-ru'] = "Забыли пароль?";
+$text['button-forgot_password']['sv-se'] = "Glömt lösenordet?";
+$text['button-forgot_password']['uk-ua'] = "Забули пароль?";
+$text['button-forgot_password']['tr-tr'] = "Parolanızı mı unuttunuz?";
+$text['button-forgot_password']['zh-cn'] = "忘记密码?";
+$text['button-forgot_password']['ja-jp'] = "パスワードを忘れた?";
+$text['button-forgot_password']['ko-kr'] = "비밀번호를 잊으셨나요?";
+
?>
diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php
index 1b87b011bc..586956a6fb 100644
--- a/core/authentication/resources/classes/plugins/database.php
+++ b/core/authentication/resources/classes/plugins/database.php
@@ -68,6 +68,12 @@ class plugin_database {
return $_SESSION['authentication']['plugin']['database'];
}
+ //determine whether to show the forgot password for resetting the password
+ $login_password_reset_enabled = false;
+ if (!empty($settings->get('login', 'password_reset_key'))) {
+ $login_password_reset_enabled = true;
+ }
+
//show the authentication code view
if (empty($_REQUEST["username"]) && empty($_REQUEST["key"])) {
@@ -102,16 +108,17 @@ class plugin_database {
$view->assign("login_destination_url", $login_destination);
$view->assign("login_domain_name_visible", $login_domain_name_visible);
$view->assign("login_domain_names", $login_domain_name);
+ $view->assign("login_password_reset_enabled", $login_password_reset_enabled);
$view->assign("favicon", $theme_favicon);
$view->assign("login_logo_width", $theme_login_logo_width);
$view->assign("login_logo_height", $theme_login_logo_height);
$view->assign("login_logo_source", $theme_logo);
$view->assign("message_delay", $theme_message_delay);
$view->assign("background_video", $theme_background_video);
+ $view->assign("login_password_description", $text['label-password_description']);
+ $view->assign("button_cancel", $text['button-cancel']);
if (!empty($_SESSION['username'])) {
- $view->assign("login_password_description", $text['label-password_description']);
$view->assign("username", $_SESSION['username']);
- $view->assign("button_cancel", $text['button-cancel']);
}
//messages
diff --git a/core/authentication/resources/views/login.htm b/core/authentication/resources/views/login.htm
index baeb480937..a2809409e8 100644
--- a/core/authentication/resources/views/login.htm
+++ b/core/authentication/resources/views/login.htm
@@ -6,7 +6,7 @@
-
+