Requested Cleanup
Corrected tab to 4 space (per request) Moved regonly option under authentication ini location (per request)
This commit is contained in:
parent
d246fa39fe
commit
0a1fe7f5a8
5 changed files with 1274 additions and 1274 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue