X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=29174b62b7ba973a18b8ffa1b4d4905fa49ebfcc;hp=20049a8f2b83c217cc43d1b33bb58f8bac094aa0;hb=93f0cb7e4e4889e80994e570d714df46c86e1844;hpb=69606ad25edfd7c75b620b44411d423330b09a81 diff --git a/src/core/core.cpp b/src/core/core.cpp index 20049a8f..29174b62 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -875,7 +875,7 @@ void Core::createUser() { 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); @@ -913,7 +913,7 @@ void Core::changeUserPass(const QString &username) { return; } - if(_storage->updateUser(userId, password)) { + if(_configured && _storage->updateUser(userId, password)) { out << "Password changed successfuly!" << endl; } else { qWarning() << "Failed to change password!";