Account/Fixup
* fix referencing nonexistent error message if password validation fails * fixes #488
This commit is contained in:
parent
021cdf6228
commit
62d898173a
3 changed files with 3 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ CLISetup::registerUtility(new class extends UtilityScript
|
|||
$name = $uiAccount['name'];
|
||||
|
||||
if (!$passw && !Util::validatePassword($uiAccount['pass1'], $e))
|
||||
CLI::write(Lang::account($e == 1 ? 'errPassLength' : 'errPassChars'), CLI::LOG_ERROR);
|
||||
CLI::write($e == 1 ? Lang::account('errPassLength') : Lang::main('intError'), CLI::LOG_ERROR);
|
||||
else if (!$passw && $uiAccount['pass1'] != $uiAccount['pass2'])
|
||||
CLI::write(Lang::account('passMismatch'), CLI::LOG_ERROR);
|
||||
else if (!$passw)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue