diff options
Diffstat (limited to 'src/modules/AuthProviderFile')
-rw-r--r-- | src/modules/AuthProviderFile/AuthProviderFile.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/AuthProviderFile/AuthProviderFile.cpp b/src/modules/AuthProviderFile/AuthProviderFile.cpp index 1756747..b1e1e52 100644 --- a/src/modules/AuthProviderFile/AuthProviderFile.cpp +++ b/src/modules/AuthProviderFile/AuthProviderFile.cpp @@ -89,23 +89,23 @@ bool AuthProviderFile::handleConfigEntry(const Core::ConfigEntry &entry, bool /* if(!entry[0].getKey().matches("AuthProviderFile")) return false; - if(entry[1].empty()) + if(entry[1].isEmpty()) return true; if(entry[1].getKey().matches("Hash")) { - if(entry[2].empty()) { - filehash = entry[1][0]; + if(entry[2].isEmpty()) { + filehash = entry[1][0].extract(); if(!Common::Hash::isHashSupported(filehash)) application->logf(Core::Logger::LOG_WARNING, "AuthProviderFile: Unsupported hash '%s'", filehash.c_str()); } } else if(entry[1].getKey().matches("File")) { - if(entry[2].empty()) { - files.push_back(entry[1][0]); + if(entry[2].isEmpty()) { + files.push_back(entry[1][0].extract()); } } - else if(!entry[2].empty()) + else if(!entry[2].isEmpty()) return false; return true; |