mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-19 16:20:50 -08:00
rebased on master
This commit is contained in:
@@ -775,7 +775,8 @@ bool Servatrice_DatabaseInterface::changeUserPassword(const QString &user, const
|
||||
if (!checkSql())
|
||||
return true;
|
||||
|
||||
if (!usernameIsValid(user))
|
||||
QString error;
|
||||
if (!usernameIsValid(user, error))
|
||||
return true;
|
||||
|
||||
QSqlQuery *passwordQuery = prepareQuery("select password_sha512 from {prefix}_users where name = :name");
|
||||
|
||||
Reference in New Issue
Block a user