summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-03 18:07:58 -0400
committerAdam <Adam@anope.org>2011-04-03 18:07:58 -0400
commit905207093b89a3c71ee3732d051555870c4d39f5 (patch)
treef940bf01272cae4a118a30e0701200e0f55a68fd /src
parentd1328d876a988329b3bdeb94999cfd696e6aa7a5 (diff)
Made LDAP support recover, release, resetpass, etc.
Diffstat (limited to 'src')
-rw-r--r--src/encrypt.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/encrypt.cpp b/src/encrypt.cpp
index 8063a6567..2414bf7bc 100644
--- a/src/encrypt.cpp
+++ b/src/encrypt.cpp
@@ -50,26 +50,3 @@ int enc_decrypt(const Anope::string &src, Anope::string &dest)
return -1;
}
-/**
- * Check an input password `plaintext' against a stored, encrypted password
- * `password'. Return value is:
- * 1 if the password matches
- * 0 if the password does not match
- * 0 if an error occurred while checking
- **/
-int enc_check_password(Anope::string &plaintext, Anope::string &password)
-{
- size_t pos = password.find(':');
- if (pos == Anope::string::npos)
- {
- Log() << "Error: enc_check_password() called with invalid password string (" << password << ")";
- return 0;
- }
- Anope::string hashm(password.begin(), password.begin() + pos);
-
- EventReturn MOD_RESULT;
- FOREACH_RESULT(I_OnCheckPassword, OnCheckPassword(hashm, plaintext, password));
- if (MOD_RESULT == EVENT_ALLOW)
- return 1;
- return 0;
-}