mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Publish username rules in login failure, too
This commit is contained in:
parent
4c27304047
commit
02dcaff356
4 changed files with 48 additions and 36 deletions
|
|
@ -247,8 +247,7 @@ AuthenticationResult Servatrice_DatabaseInterface::checkUserPassword(Server_Prot
|
|||
if (!checkSql())
|
||||
return UnknownUser;
|
||||
|
||||
QString error;
|
||||
if (!usernameIsValid(user, error))
|
||||
if (!usernameIsValid(user, reasonStr))
|
||||
return UsernameInvalid;
|
||||
|
||||
if (checkUserIsBanned(handler->getAddress(), user, reasonStr, banSecondsLeft))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue