mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
rebased on master
This commit is contained in:
parent
15998fb3e6
commit
68f1358f54
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue