summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/AuthBackendFile/AuthBackendFile.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/AuthBackendFile/AuthBackendFile.h b/src/modules/AuthBackendFile/AuthBackendFile.h
index 5f13b51..8098817 100644
--- a/src/modules/AuthBackendFile/AuthBackendFile.h
+++ b/src/modules/AuthBackendFile/AuthBackendFile.h
@@ -71,9 +71,14 @@ class MAD_MODULE_EXPORT AuthBackendFile : public Common::AuthBackend, private Co
boost::shared_ptr<Common::AuthContext> context) throw(Core::Exception);
public:
- AuthBackendFile(Common::Application *application0) : application(application0), subMethods(Common::Hash::getHashList()) {
+ AuthBackendFile(Common::Application *application0) : application(application0) {
methods.push_back("Password");
- subMethods.push_back("Clear");
+
+ const std::vector<std::string> &hashList = Common::Hash::getHashList();
+ if(hashList.empty())
+ subMethods.push_back("Clear");
+ else
+ subMethods.push_back(hashList.front());
application->getConfigManager()->registerConfigurable(this);
}