Servatrice: added authentication type "password"

This commit is contained in:
Fabio Bas 2014-10-04 17:50:01 +02:00
parent 0261862b1b
commit 0d9eec4b64
3 changed files with 12 additions and 2 deletions

View file

@ -141,9 +141,11 @@ bool Servatrice::initServer()
const QString authenticationMethodStr = settingsCache->value("authentication/method").toString();
if (authenticationMethodStr == "sql") {
authenticationMethod = AuthenticationSql;
} else if(authenticationMethodStr == "password") {
authenticationMethod = AuthenticationPassword;
} else {
if (regServerOnly) {
qDebug() << "Registration only server enabled but no DB Connection : Error.";
qDebug() << "Registration only server enabled but no authentication method defined: Error.";
return false;
}
authenticationMethod = AuthenticationNone;