Repository navigation
fix(auth): handle Auth0 password 400 without error code and strip email whitespace (#295) - #310
Merged
Merged
Conversation
…components since it's a core requirement for HA itself
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #295
Summary
/u/login/passwordwithoutdata-error-code: When Auth0 rejects a password submission without rendering a field-leveldata-error-codeattribute (e.g., accounts that have not yet reset their password / accepted updated terms following Generac's April 2026 security migration, or custom DB script rejections that render a#prompt-alertbanner),_post_login_formnow extracts the human-readable alert text from#prompt-alert/.ulp-input-error-message/.ulp-validator-errorand raisesInvalidCredentialsErrorinstead of falling through to an uncaughtRuntimeErrorwith<!DOCTYPE html>in the log.invalid-email-formatand rate-limit error codes as credential errors: Added"email","many-attempts", and"many_attempts"to_CREDENTIAL_ERROR_KEYWORDS..strip()inconfig_flow.pyandauth.pyso copy-paste whitespace doesn't triggerinvalid-email-formaton/u/login/identifieror cause a mismatch between the trimmed session username and the/u/login/passwordform submission.autherror string intranslations/en.jsonto remind users who haven't reset their password since the April 2026 security update to sign in atapp.mobilelinkgen.comfirst.