aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-02-28 14:30:35 +0000
committerGravatar Sadie Powell2023-02-28 14:38:44 +0000
commit1c6d20e73c9369eb57b255188b59d784d0f2730e (patch)
treecd80f50659a8e78b609daee90791f95e3da174e5 /src/users.cpp
parentFix 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/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 1cf742f7d..84ad1240f 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1308,5 +1308,5 @@ bool OperAccount::CanAutoLogin(LocalUser* user) const
bool OperAccount::CheckPassword(const std::string& pw) const
{
- return InspIRCd::PassCompare(password, pw, passwordhash);
+ return InspIRCd::CheckPassword(password, passwordhash, pw);
}