diff options
Diffstat (limited to 'src/command_parse.cpp')
| -rw-r--r-- | src/command_parse.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index a5edf9913..f62400dd5 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -26,26 +26,6 @@ #include "inspircd.h" -bool InspIRCd::CheckPassword(const std::string& password, const std::string& passwordhash, const std::string& value) -{ - ModResult res; - FIRST_MOD_RESULT(OnCheckPassword, res, (password, passwordhash, value)); - - if (res == MOD_RES_ALLOW) - return true; // Password explicitly valid. - - if (res == MOD_RES_DENY) - return false; // Password explicitly invalid. - - // The hash algorithm wasn't recognised by any modules. If its plain - // text then we can check it internally. - if (passwordhash.empty() || stdalgo::string::equalsci(passwordhash, "plaintext")) - return TimingSafeCompare(password, value); - - // The password was invalid. - return false; -} - bool CommandParser::LoopCall(User* user, Command* handler, const CommandBase::Params& parameters, unsigned int splithere, int extra, bool usemax) { if (splithere >= parameters.size()) |
