Fix login for homeservers without well-known

This commit is contained in:
Tobias Fella
2020-12-27 23:36:35 +01:00
parent 93e0a2b2f6
commit 3858956e82

View File

@@ -109,7 +109,7 @@ void Controller::loginWithCredentials(const QString &serverAddr, const QString &
// we are using a fake mixd since resolveServer just set the homeserver url :sigh:
conn->resolveServer("@username:" + serverUrl.host() + ":" + QString::number(serverUrl.port(443)));
connect(conn, &Connection::homeserverChanged, this, [this, user, conn, pass, deviceName]() {
connect(conn, &Connection::loginFlowsChanged, this, [this, user, conn, pass, deviceName]() {
conn->loginWithPassword(user, pass, deviceName, "");
connect(conn, &Connection::connected, this, [this, conn, deviceName] {
AccountSettings account(conn->userId());