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…
Reference in a new issue