mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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 !== "") {
|
||||
this._login(email, password, checkConnection, totpCode);
|
||||
return undefined;
|
||||
return "continue";
|
||||
}
|
||||
}
|
||||
if (errCode === "alreadyconnectederror") {
|
||||
@ -167,7 +167,7 @@ export class CloudLogin extends LitElement {
|
||||
this._login(email, password, false);
|
||||
}
|
||||
|
||||
return logInHere ? undefined : "cancel";
|
||||
return logInHere ? "continue" : "cancel";
|
||||
}
|
||||
if (errCode === "PasswordChangeRequired") {
|
||||
showAlertDialog(this, {
|
||||
@ -266,8 +266,10 @@ export class CloudLogin extends LitElement {
|
||||
return;
|
||||
}
|
||||
|
||||
this._inProgress = false;
|
||||
this._error = error;
|
||||
if (error !== "continue") {
|
||||
this._inProgress = false;
|
||||
this._error = error;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user