Requested Cleanup

Corrected tab to 4 space (per request)
Moved regonly option under authentication ini location (per request)
This commit is contained in:
woogerboy21 2014-07-02 22:27:05 -04:00
parent d246fa39fe
commit 0a1fe7f5a8
5 changed files with 1274 additions and 1274 deletions

View file

@ -133,7 +133,7 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
// Change user name so that no two users have the same names, // Change user name so that no two users have the same names,
// don't interfere with registered user names though. // don't interfere with registered user names though.
QSettings *settings = new QSettings("servatrice.ini", QSettings::IniFormat); 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) { if (requireReg) {
qDebug("Login denied: registration required"); qDebug("Login denied: registration required");
databaseInterface->unlockSessionTables(); databaseInterface->unlockSessionTables();

View file

@ -7,7 +7,6 @@ id=1
number_pools=1 number_pools=1
writelog=1 writelog=1
logfilters="" logfilters=""
regonly=0
[servernetwork] [servernetwork]
active=0 active=0
@ -17,6 +16,7 @@ ssl_key=ssl_key.pem
[authentication] [authentication]
method=none method=none
regonly=0
[database] [database]
type=none type=none