Skip to content

Commit 0634d4e

Browse files
committed
Added a missing error message in tools module.
1 parent a067bda commit 0634d4e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

interface/web/tools/lib/lang/en_usersettings.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ $wb["passwort_txt"] = 'Password';
33
$wb["language_txt"] = 'Language';
44
$wb["btn_save_txt"] = 'Save';
55
$wb["btn_cancel_txt"] = 'Cancel';
6+
$wb["password_mismatch"] = 'The password in the second password field does not match the first password.';
67
?>

interface/web/tools/user_settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function onBeforeUpdate() {
7777
global $app, $conf;
7878

7979
if($_POST['passwort'] != $_POST['passwort2']) {
80-
$app->tform->errorMessage = 'The passwords in the second password field does not match the first password.';
80+
$app->tform->errorMessage = $app->tform->lng('password_mismatch');
8181
}
8282

8383
}

0 commit comments

Comments
 (0)