]> granicus.if.org Git - icinga2/commitdiff
MAke ApiUser::CheckPassword() const
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 2 Jul 2015 07:26:43 +0000 (09:26 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 2 Jul 2015 07:26:43 +0000 (09:26 +0200)
refs #9471

lib/remote/apiuser.cpp
lib/remote/apiuser.hpp

index d0c49c15f74dd3a7fe42f188182b280a3a38604b..a9c2957c876e91cc02f7ca36347cfb3ce5474c86 100644 (file)
@@ -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();
 }
index 005da3de2506041b34f136d449788186d25d42b4..41f8a3a0c63c57c889fad1ae5d3aa41fedc865cc 100644 (file)
@@ -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;
 };
 
 }