The login checks fields before it submits, and forgets passwords between steps
<zitadel-login> now checks a field's minimum and maximum length before it submits, and shows the error on the field it concerns.
- A wrong password (
error.invalid_credentials) shows on the password field instead of in the form-level alert. <zl-field>shows only the error under a field while it has one, and its help text again once the error clears.- A typed password or one-time code is no longer carried to the next step: after "Use another account", or on any later step that asks for one, the field starts empty. A value the same step refuses is kept so it can be corrected.
- When it cannot start a flow, it says which attribute is wrong: a
purposethat is not a flow purpose (listing the valid ones), aflow-namethat is not a valid name, a project id the server refuses or does not have, or a purpose no active flow serves.
A custom template must render the password field's error (f.name | fieldError: errors) to show a wrong password.