fix cloud login mfa inProgress (#24773)

This commit is contained in:
Wendelin 2025-03-25 14:56:30 +01:00 committed by GitHub
parent 1e513281f4
commit 4c8b7a30f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}
};