mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Onboarding restore use error code (#24172)
Use error code for incorrect password
This commit is contained in:
parent
dbd1e928de
commit
23a9ae6835
@ -135,7 +135,7 @@ class OnboardingRestoreBackupRestore extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
button.actionError();
|
button.actionError();
|
||||||
if (err.body?.message === "incorrect_password") {
|
if (err.body?.code === "incorrect_password") {
|
||||||
this._encryptionKeyWrong = true;
|
this._encryptionKeyWrong = true;
|
||||||
} else {
|
} else {
|
||||||
this._error =
|
this._error =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user