diff options
| author | 2023-02-28 14:30:35 +0000 | |
|---|---|---|
| committer | 2023-02-28 14:38:44 +0000 | |
| commit | 1c6d20e73c9369eb57b255188b59d784d0f2730e (patch) | |
| tree | cd80f50659a8e78b609daee90791f95e3da174e5 /src/modules/m_gateway.cpp | |
| parent | Fix some unnecessary boolean explicit checks. (diff) | |
Refactor the password checking API.
- Rename from (On)PassCompare to (On)CheckPassword.
- Fix the order of the arguments to be password, hash, value. This
makes more sense than what it was previously.
- Fix the code documentation to not be complete nonsense and not
reference ancient outdated APIs.
Diffstat (limited to 'src/modules/m_gateway.cpp')
| -rw-r--r-- | src/modules/m_gateway.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp index 1c4e3970a..af776d816 100644 --- a/src/modules/m_gateway.cpp +++ b/src/modules/m_gateway.cpp @@ -103,7 +103,7 @@ public: bool Matches(LocalUser* user, const std::string& pass, UserCertificateAPI& sslapi) const { // Did the user send a valid password? - if (!password.empty() && !InspIRCd::PassCompare(password, pass, passhash)) + if (!password.empty() && !InspIRCd::CheckPassword(password, passhash, pass)) return false; // Does the user have a valid fingerprint? |
