Servatrice: log to console authentication method on startup
This commit is contained in:
parent
15555c16fd
commit
22af789c9e
1 changed files with 4 additions and 0 deletions
|
@ -140,14 +140,18 @@ bool Servatrice::initServer()
|
||||||
|
|
||||||
const QString authenticationMethodStr = settingsCache->value("authentication/method").toString();
|
const QString authenticationMethodStr = settingsCache->value("authentication/method").toString();
|
||||||
if (authenticationMethodStr == "sql") {
|
if (authenticationMethodStr == "sql") {
|
||||||
|
qDebug() << "Authenticating method: sql";
|
||||||
authenticationMethod = AuthenticationSql;
|
authenticationMethod = AuthenticationSql;
|
||||||
} else if(authenticationMethodStr == "password") {
|
} else if(authenticationMethodStr == "password") {
|
||||||
|
qDebug() << "Authenticating method: password";
|
||||||
authenticationMethod = AuthenticationPassword;
|
authenticationMethod = AuthenticationPassword;
|
||||||
} else {
|
} else {
|
||||||
if (regServerOnly) {
|
if (regServerOnly) {
|
||||||
qDebug() << "Registration only server enabled but no authentication method defined: Error.";
|
qDebug() << "Registration only server enabled but no authentication method defined: Error.";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDebug() << "Authenticating method: none";
|
||||||
authenticationMethod = AuthenticationNone;
|
authenticationMethod = AuthenticationNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue