Commit 22af789c authored by Fabio Bas's avatar Fabio Bas
Browse files

Servatrice: log to console authentication method on startup

parent 15555c16
...@@ -140,14 +140,18 @@ bool Servatrice::initServer() ...@@ -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;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment