Commit 0e5e6e8f authored by Franco Fichtner's avatar Franco Fichtner

login: translate login error as well

parent 19226c4c
...@@ -1350,7 +1350,7 @@ function session_auth() { ...@@ -1350,7 +1350,7 @@ function session_auth() {
exit; exit;
} else { } else {
/* give the user an error message */ /* give the user an error message */
$_SESSION['Login_Error'] = 'Wrong username or password.'; $_SESSION['Login_Error'] = _('Wrong username or password.');
log_error("webConfigurator authentication error for '{$_POST['usernamefld']}' from {$_SERVER['REMOTE_ADDR']}"); log_error("webConfigurator authentication error for '{$_POST['usernamefld']}' from {$_SERVER['REMOTE_ADDR']}");
if (isAjax()) { if (isAjax()) {
echo "showajaxmessage('{$_SESSION['Login_Error']}');"; echo "showajaxmessage('{$_SESSION['Login_Error']}');";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment