summaryrefslogtreecommitdiffstats
path: root/src/modules/AuthBackendFile/AuthBackendFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/AuthBackendFile/AuthBackendFile.cpp')
-rw-r--r--src/modules/AuthBackendFile/AuthBackendFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/AuthBackendFile/AuthBackendFile.cpp b/src/modules/AuthBackendFile/AuthBackendFile.cpp
index 8374101..ac7a1db 100644
--- a/src/modules/AuthBackendFile/AuthBackendFile.cpp
+++ b/src/modules/AuthBackendFile/AuthBackendFile.cpp
@@ -75,7 +75,7 @@ bool AuthBackendFile::handleConfigEntry(const Core::ConfigEntry &entry, bool /*h
}
boost::shared_ptr<Common::AuthContext> AuthBackendFile::authenticate(const std::string &method, const std::string &user,
- const std::vector<boost::uint8_t> &challenge, std::vector<boost::uint8_t>& /*response*/,
+ const std::vector<boost::uint8_t> &data, std::vector<boost::uint8_t>& /*response*/,
boost::shared_ptr<Common::AuthContext> context) throw(Core::Exception) {
if(method != "Password")
throw(Core::Exception(Core::Exception::INVALID_INPUT));
@@ -86,7 +86,7 @@ boost::shared_ptr<Common::AuthContext> AuthBackendFile::authenticate(const std::
if(context.get() == 0)
context.reset(new AuthContextFile);
- std::string password(challenge.begin(), challenge.end());
+ std::string password(data.begin(), data.end());
std::map<std::string, std::string>::iterator userIt = userMap.find(user);
if(userIt == userMap.end() || password != userIt->second)