diff options
Diffstat (limited to 'Swiften/Server/SimpleUserRegistry.cpp')
m--------- | Swiften | 0 | ||||
-rw-r--r-- | Swiften/Server/SimpleUserRegistry.cpp | 17 |
2 files changed, 0 insertions, 17 deletions
diff --git a/Swiften b/Swiften new file mode 160000 +Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c diff --git a/Swiften/Server/SimpleUserRegistry.cpp b/Swiften/Server/SimpleUserRegistry.cpp deleted file mode 100644 index 1a6743a..0000000 --- a/Swiften/Server/SimpleUserRegistry.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include "Swiften/Server/SimpleUserRegistry.h" - -namespace Swift { - -SimpleUserRegistry::SimpleUserRegistry() { -} - -bool SimpleUserRegistry::isValidUserPassword(const JID& user, const String& password) const { - std::map<JID,String>::const_iterator i = users.find(user); - return i != users.end() ? i->second == password : false; -} - -void SimpleUserRegistry::addUser(const JID& user, const String& password) { - users.insert(std::make_pair(user, password)); -} - -} |