Add missing inversion of query lookup result
Your user exists? Great! It actually does not. Note to self : Unit test SQL
This commit is contained in:
parent
cde07b5c50
commit
a2f0fa89d9
@ -203,7 +203,7 @@ bool DBManager::deleteUser(QString username)
|
|||||||
username_exists.addBindValue(username);
|
username_exists.addBindValue(username);
|
||||||
username_exists.exec();
|
username_exists.exec();
|
||||||
|
|
||||||
if (username_exists.first())
|
if (!username_exists.first())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QSqlQuery query;
|
QSqlQuery query;
|
||||||
|
Loading…
Reference in New Issue
Block a user