X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fcore.cpp;h=2049b63b5ba4df42911b2893d7b58f6a104ae081;hb=60bf8c5270a523172fd4e4dd4768058af612439f;hp=dfd2c95ae8c9e44985173306d7b5af4fe38bf0e6;hpb=8379f6f725cf8ed2fdad1a19bd10743436c2d086;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index dfd2c95a..2049b63b 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -638,7 +638,6 @@ SessionThread *Core::sessionForUser(UserId uid, bool restore) SessionThread *session = new SessionThread(uid, restore, this); _sessions[uid] = session; session->start(); - connect(session, SIGNAL(passwordChangeRequested(UserId, QString)), _storage, SLOT(updateUser(UserId, QString))); return session; } @@ -819,6 +818,15 @@ void Core::changeUserPass(const QString &username) } +bool Core::changeUserPassword(UserId userId, const QString &password) +{ + if (!isConfigured() || !userId.isValid()) + return false; + + return instance()->_storage->updateUser(userId, password); +} + + AbstractSqlMigrationReader *Core::getMigrationReader(Storage *storage) { if (!storage)