static inline UserId addUser(const QString &userName, const QString &password, const QString &authenticator = "Database") {
return instance()->_storage->addUser(userName, password, authenticator);
}
-
+
//! Does a comparison test against the authenticator in the database and the authenticator currently in use for a UserID.
/**
* \param userid The user's ID (note: not login name).
*/
static bool changeUserPassword(UserId userId, const QString &password);
+ //! Check if we can change a user password.
+ /**
+ * \param userID The user's ID
+ * \return true, if we can change their password, false otherwise
+ */
+ static bool canChangeUserPassword(UserId userId);
+
//! Store a user setting persistently
/**
* \param userId The users Id