mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-21 14:50:26 -08:00
Requested Cleanup
Corrected tab to 4 space (per request) Moved regonly option under authentication ini location (per request)
This commit is contained in:
@@ -133,7 +133,7 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
|
||||
// Change user name so that no two users have the same names,
|
||||
// don't interfere with registered user names though.
|
||||
QSettings *settings = new QSettings("servatrice.ini", QSettings::IniFormat);
|
||||
bool requireReg = settings->value("server/regonly").toBool();
|
||||
bool requireReg = settings->value("authentication/regonly", 0).toBool();
|
||||
if (requireReg) {
|
||||
qDebug("Login denied: registration required");
|
||||
databaseInterface->unlockSessionTables();
|
||||
|
||||
@@ -7,7 +7,6 @@ id=1
|
||||
number_pools=1
|
||||
writelog=1
|
||||
logfilters=""
|
||||
regonly=0
|
||||
|
||||
[servernetwork]
|
||||
active=0
|
||||
@@ -17,6 +16,7 @@ ssl_key=ssl_key.pem
|
||||
|
||||
[authentication]
|
||||
method=none
|
||||
regonly=0
|
||||
|
||||
[database]
|
||||
type=none
|
||||
|
||||
Reference in New Issue
Block a user