Fix login for homeservers without well-known
This commit is contained in:
@@ -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:
|
// we are using a fake mixd since resolveServer just set the homeserver url :sigh:
|
||||||
conn->resolveServer("@username:" + serverUrl.host() + ":" + QString::number(serverUrl.port(443)));
|
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, "");
|
conn->loginWithPassword(user, pass, deviceName, "");
|
||||||
connect(conn, &Connection::connected, this, [this, conn, deviceName] {
|
connect(conn, &Connection::connected, this, [this, conn, deviceName] {
|
||||||
AccountSettings account(conn->userId());
|
AccountSettings account(conn->userId());
|
||||||
|
|||||||
Reference in New Issue
Block a user