X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fsqlauthenticator.cpp;h=94c759c44a512ac627dbc245424514af379d78c1;hp=969f2d02b77370aa88b20c31c619cdc2d64fff23;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=30b159cb876a9495de42e9a3e70ca050516f0805 diff --git a/src/core/sqlauthenticator.cpp b/src/core/sqlauthenticator.cpp index 969f2d02..94c759c4 100644 --- a/src/core/sqlauthenticator.cpp +++ b/src/core/sqlauthenticator.cpp @@ -20,17 +20,14 @@ #include "sqlauthenticator.h" +#include "core.h" #include "logmessage.h" #include "network.h" #include "quassel.h" -#include "core.h" - -SqlAuthenticator::SqlAuthenticator(QObject *parent) +SqlAuthenticator::SqlAuthenticator(QObject* parent) : Authenticator(parent) -{ -} - +{} bool SqlAuthenticator::isAvailable() const { @@ -38,7 +35,6 @@ bool SqlAuthenticator::isAvailable() const return true; } - QString SqlAuthenticator::backendId() const { // We identify the backend to use for the monolithic core by this identifier. @@ -47,28 +43,23 @@ QString SqlAuthenticator::backendId() const return QString("Database"); } - QString SqlAuthenticator::displayName() const { return tr("Database"); } - QString SqlAuthenticator::description() const { return tr("Do not authenticate against any remote service, but instead save a hashed and salted password " "in the database selected in the next step."); } - -UserId SqlAuthenticator::validateUser(const QString &user, const QString &password) +UserId SqlAuthenticator::validateUser(const QString& user, const QString& password) { return Core::validateUser(user, password); } - -bool SqlAuthenticator::setup(const QVariantMap &settings, const QProcessEnvironment &environment, - bool loadFromEnvironment) +bool SqlAuthenticator::setup(const QVariantMap& settings, const QProcessEnvironment& environment, bool loadFromEnvironment) { Q_UNUSED(settings) Q_UNUSED(environment) @@ -76,10 +67,7 @@ bool SqlAuthenticator::setup(const QVariantMap &settings, const QProcessEnvironm return true; } - -Authenticator::State SqlAuthenticator::init(const QVariantMap &settings, - const QProcessEnvironment &environment, - bool loadFromEnvironment) +Authenticator::State SqlAuthenticator::init(const QVariantMap& settings, const QProcessEnvironment& environment, bool loadFromEnvironment) { Q_UNUSED(settings) Q_UNUSED(environment)