mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-29 07:00:21 -07:00
add werror flags when making a debug build using llvm (#4344)
* add werror flags when making a debug build using llvm this would get bugs like https://github.com/Cockatrice/Cockatrice/pull/4337 get signalled earlier to us * fix error: 'Servatrice_DatabaseInterface::registerUser' hides overloaded virtual function * remove unused field * mac machines have 3 cores see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources * typo
This commit is contained in:
@@ -201,14 +201,13 @@ bool Servatrice_DatabaseInterface::registerUser(const QString &userName,
|
||||
const QString &password,
|
||||
const QString &emailAddress,
|
||||
const QString &country,
|
||||
QString &token,
|
||||
bool active)
|
||||
{
|
||||
if (!checkSql())
|
||||
return false;
|
||||
|
||||
QString passwordSha512 = PasswordHasher::computeHash(password, PasswordHasher::generateRandomSalt());
|
||||
token = active ? QString() : PasswordHasher::generateActivationToken();
|
||||
QString token = active ? QString() : PasswordHasher::generateActivationToken();
|
||||
|
||||
QSqlQuery *query =
|
||||
prepareQuery("insert into {prefix}_users "
|
||||
|
||||
Reference in New Issue
Block a user