projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide a proper dialog for changing the core password
[quassel.git]
/
src
/
core
/
core.cpp
diff --git
a/src/core/core.cpp
b/src/core/core.cpp
index
dfd2c95
..
2049b63
100644
(file)
--- 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();
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;
}
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)
AbstractSqlMigrationReader *Core::getMigrationReader(Storage *storage)
{
if (!storage)