}
connect(&_server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
}
connect(&_server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
}
if (_configured && _storage->addUser(username, password).isValid()) {
out << "Added user " << username << " successfully!" << endl;
}
if (_configured && _storage->addUser(username, password).isValid()) {
out << "Added user " << username << " successfully!" << endl;
{
QTextStream out(stdout);
QTextStream in(stdin);
UserId userId = _storage->getUserId(username);
if (!userId.isValid()) {
out << "User " << username << " does not exist." << endl;
{
QTextStream out(stdout);
QTextStream in(stdin);
UserId userId = _storage->getUserId(username);
if (!userId.isValid()) {
out << "User " << username << " does not exist." << endl;
}
if (_configured && _storage->updateUser(userId, password)) {
out << "Password changed successfully!" << endl;
}
if (_configured && _storage->updateUser(userId, password)) {
out << "Password changed successfully!" << endl;