mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-05 01:27:38 -08:00
Publish username rules in login failure, too
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user