From: Michael Friedrich Date: Thu, 2 Jul 2015 07:26:43 +0000 (+0200) Subject: MAke ApiUser::CheckPassword() const X-Git-Tag: v2.4.0~554 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8450cb5d6cc5d13def1f424837a178e468137972;p=icinga2 MAke ApiUser::CheckPassword() const refs #9471 --- diff --git a/lib/remote/apiuser.cpp b/lib/remote/apiuser.cpp index d0c49c15f..a9c2957c8 100644 --- a/lib/remote/apiuser.cpp +++ b/lib/remote/apiuser.cpp @@ -34,7 +34,7 @@ void ApiUser::SetPassword(const String& password) SetPasswordRaw(password); } -bool ApiUser::CheckPassword(const String& password) +bool ApiUser::CheckPassword(const String& password) const { return password == GetPasswordRaw(); } diff --git a/lib/remote/apiuser.hpp b/lib/remote/apiuser.hpp index 005da3de2..41f8a3a0c 100644 --- a/lib/remote/apiuser.hpp +++ b/lib/remote/apiuser.hpp @@ -37,7 +37,7 @@ public: String GetPassword(void) const; void SetPassword(const String& password); - bool CheckPassword(const String& password); + bool CheckPassword(const String& password) const; }; }