mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
fix cloud login mfa inProgress (#24773)
This commit is contained in:
parent
1e513281f4
commit
4c8b7a30f4
@ -156,7 +156,7 @@ export class CloudLogin extends LitElement {
|
|||||||
});
|
});
|
||||||
if (totpCode !== null && totpCode !== "") {
|
if (totpCode !== null && totpCode !== "") {
|
||||||
this._login(email, password, checkConnection, totpCode);
|
this._login(email, password, checkConnection, totpCode);
|
||||||
return undefined;
|
return "continue";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (errCode === "alreadyconnectederror") {
|
if (errCode === "alreadyconnectederror") {
|
||||||
@ -167,7 +167,7 @@ export class CloudLogin extends LitElement {
|
|||||||
this._login(email, password, false);
|
this._login(email, password, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return logInHere ? undefined : "cancel";
|
return logInHere ? "continue" : "cancel";
|
||||||
}
|
}
|
||||||
if (errCode === "PasswordChangeRequired") {
|
if (errCode === "PasswordChangeRequired") {
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
@ -266,8 +266,10 @@ export class CloudLogin extends LitElement {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._inProgress = false;
|
if (error !== "continue") {
|
||||||
this._error = error;
|
this._inProgress = false;
|
||||||
|
this._error = error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user