ldap: Some cleanups for GH-170
[quassel.git] / src / core / sqlauthenticator.cpp
index f1ed169..4977218 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2015 by the Quassel Project                        *
+ *   Copyright (C) 2005-2016 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -36,12 +36,14 @@ SqlAuthenticator::~SqlAuthenticator()
 {
 }
 
+
 bool SqlAuthenticator::isAvailable() const
 {
     // FIXME: probably this should query the current storage (see the ::init routine too).
     return true;
 }
 
+
 QString SqlAuthenticator::backendId() const
 {
     // We identify the backend to use for the monolithic core by its displayname.
@@ -50,24 +52,31 @@ QString SqlAuthenticator::backendId() const
     return QString("Database");
 }
 
+
 QString SqlAuthenticator::description() const
 {
     return tr("Do not auth against any remote authentication service, but instead save a hashed and salted password "
               "in the selected database.");
 }
 
+
 UserId SqlAuthenticator::validateUser(const QString &user, const QString &password)
 {
     return Core::validateUser(user, password);
 }
 
+
 bool SqlAuthenticator::setup(const QVariantMap &settings)
 {
+    Q_UNUSED(settings)
     return true;
 }
 
+
 Authenticator::State SqlAuthenticator::init(const QVariantMap &settings)
 {
+    Q_UNUSED(settings)
+
     // TODO: FIXME: this should check if the storage provider is ready, but I don't
     // know if there's an exposed way to do that at the moment.