projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
409b425
)
Adding users and changing passwords needs a configured core.
author
Michael Groh
<brot@minad.de>
Thu, 4 Mar 2010 09:59:38 +0000
(10:59 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Thu, 4 Mar 2010 13:49:57 +0000
(14:49 +0100)
Fixing bug #924
src/core/core.cpp
patch
|
blob
|
history
diff --git
a/src/core/core.cpp
b/src/core/core.cpp
index
20049a8
..
29174b6
100644
(file)
--- a/
src/core/core.cpp
+++ b/
src/core/core.cpp
@@
-875,7
+875,7
@@
void Core::createUser() {
return;
}
return;
}
- if(_storage->addUser(username, password).isValid()) {
+ if(_
configured && _
storage->addUser(username, password).isValid()) {
out << "Added user " << username << " successfully!" << endl;
} else {
qWarning() << "Unable to add user:" << qPrintable(username);
out << "Added user " << username << " successfully!" << endl;
} else {
qWarning() << "Unable to add user:" << qPrintable(username);
@@
-913,7
+913,7
@@
void Core::changeUserPass(const QString &username) {
return;
}
return;
}
- if(_storage->updateUser(userId, password)) {
+ if(_
configured && _
storage->updateUser(userId, password)) {
out << "Password changed successfuly!" << endl;
} else {
qWarning() << "Failed to change password!";
out << "Password changed successfuly!" << endl;
} else {
qWarning() << "Failed to change password!";