Apple keychain support for creating account and login account #9923
Replies: 2 comments 2 replies
-
It looks like these are standard values in HTML5 now, and Chrome follows the same pattern as per the Apple documentation link you provided. Although it looks like this this is easier said than done. The Home Assistant frontend uses LitElements. For form inputs, it uses iron-input. At least, it does so on the login page. The actual Autocomplete doesn't work in this scenario, per lit/lit-element#1023 There are underlying and unresolved bugs in every major browser engine: There are potential workarounds, but they're out of my current comfort zone to whip up a pull-request for. |
Beta Was this translation helpful? Give feedback.
-
If anyone wants to take a stab at implementing this, the best place would be inside the These elements are placed outside the Shadow DOM, so the browser can see process these attributes (see the list of bugs in tahamoddie's answer). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As a Mac user I'm using the Apple Keychain on my Mac and iOS devices. When signing up an account it would be convenient to save the credentials in the Apple Keychain and auto-fill when logging in.
Add the following to the create account screen:
<input id="new-password-text-field" type="password" autocomplete="new-password"/>
<input id="confirm-password-text-field" type="password" autocomplete="new-password"/>
Add the following to the change password screen:
<input id="user-text-field" type="email" autocomplete="username"/>
<input id="password-text-field" type="password" autocomplete="current-password"/>
https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_an_html_input_element
Beta Was this translation helpful? Give feedback.
All reactions