1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-19 18:28:42 +00:00

Trim whitespace from 2FA input before validation (#28616)

This commit is contained in:
Jan Layola
2025-12-19 08:48:11 +01:00
committed by GitHub
parent ce9bbc9972
commit ef984fc438
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ export class CloudStepSignin extends LitElement {
),
});
if (totpCode !== null && totpCode !== "") {
await doLogin(username, totpCode);
await doLogin(username, totpCode.trim());
return;
}
}

View File

@@ -155,7 +155,7 @@ export class CloudLogin extends LitElement {
),
});
if (totpCode !== null && totpCode !== "") {
this._login(email, password, checkConnection, totpCode);
this._login(email, password, checkConnection, totpCode.trim());
return "continue";
}
}