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; }; }