X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=994e473ba5b3d78c2415dd7d0be8e2112ab28a3d;hp=0b455aef1cb504cfbdb5408d608bb92281f3f3e6;hb=8efbb2ef22f5f007b5dc6d5b15ecf070ccef08ca;hpb=dd1d9d68c406b993230161208cbd17db55dc85a9 diff --git a/src/core/core.h b/src/core/core.h index 0b455aef..994e473b 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -125,6 +125,16 @@ public: return instance()->_storage->getUserAuthenticator(userid) == authenticator; } + //! Gets the authenticator configured for a user. + /** + * \param userid The user's name as a QString. + * \return String value corresponding to the user's configure dauthenticator. + */ + static inline QString getUserAuthenticator(const QString& userName) + { + return instance()->_storage->getUserAuthenticator(instance()->_storage->getUserId(userName)); + } + //! Change a user's password /** * \param userId The user's ID