X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=e356a0fb6437c7d534f380acf9554aba4f7cd366;hp=deef9114ece8a14c5cd5f1b707529c4e2c34c638;hb=921321156c2f1ceed0e02d519a1835e63e8c8b48;hpb=d367542ce54ed86fd3c8dbdbbf8210fc9a19a882 diff --git a/src/core/core.h b/src/core/core.h index deef9114..e356a0fb 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -74,6 +74,15 @@ public: return instance()->_storage->validateUser(userName, password); } + + //! Change a user's password + /** + * \param userId The user's ID + * \param password The user's unencrypted new password + * \return true, if the password change was successful + */ + static bool changeUserPassword(UserId userId, const QString &password); + //! Store a user setting persistently /** * \param userId The users Id