Fix login for homeservers without well-known

(cherry picked from commit 3858956e82)
This commit is contained in:
Tobias Fella
2020-12-27 22:36:35 +00:00
parent 85b4d7d049
commit 50a4d0a33f

View File

@@ -110,7 +110,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());