mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
Statement Correction
Derp...
This commit is contained in:
parent
ad7b1602af
commit
a6bd08815c
1 changed files with 2 additions and 1 deletions
|
|
@ -134,10 +134,11 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
|
|||
// don't interfere with registered user names though.
|
||||
QSettings *settings = new QSettings("servatrice.ini", QSettings::IniFormat);
|
||||
bool requireReg = settings->value("server/regonly").toBool();
|
||||
if (requireReg)
|
||||
if (requireReg) {
|
||||
qDebug("Login denied: registration required");
|
||||
databaseInterface->unlockSessionTables();
|
||||
return RegistrationRequired;
|
||||
}
|
||||
|
||||
QString tempName = name;
|
||||
int i = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue