Commit 1720777a authored by Jonny Bradley's avatar Jonny Bradley

[FIX] login: Better label for ACCOUNT_DISABLED error

parent 48cf9b7d
......@@ -388,7 +388,7 @@ if ($isvalid) {
exit;
case ACCOUNT_DISABLED:
$error = tra('Account disabled');
$error = tra('Account requires administrator approval');
break;
case ACCOUNT_WAITING_USER:
......
......@@ -96,7 +96,7 @@ if ($isvalid) {
} else {
if ($error == PASSWORD_INCORRECT) $error = tra("Invalid password");
else if ($error == USER_NOT_FOUND) $error = tra("Invalid username");
else if ($error == ACCOUNT_DISABLED) $error = tra("Account disabled");
else if ($error == ACCOUNT_DISABLED) $error = tra("Account requires administrator approval");
else if ($error == USER_AMBIGOUS) $error = tra("You must use the right case for your user name");
else if ($error == USER_PREVIOUSLY_VALIDATED) $error = tra('You have already validated your account. Please log in.');
else $error = tra('Invalid username or password');
......
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