-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Login: Added custom validation for missing password and user/email on the login form #20233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login: Added custom validation for missing password and user/email on the login form #20233
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the login form validation by adding custom client-side validation messages for empty username/email and password fields with localization support.
- Moved validation logic from login page to the auth element for better separation of concerns
- Added localized validation messages for required field validation
- Implemented custom CSS styling for validation message display
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Umbraco.Web.UI.Login/src/localization/lang/en-us.ts | Added English localization keys for validation messages |
| src/Umbraco.Web.UI.Login/src/localization/lang/da.ts | Added Danish localization keys for validation messages |
| src/Umbraco.Web.UI.Login/src/components/pages/login.page.element.ts | Removed validation logic and cleaned up error state handling |
| src/Umbraco.Web.UI.Login/src/auth.element.ts | Added validation logic with custom validation messages and form submission handling |
| src/Umbraco.Web.UI.Login/src/auth-styles.css | Added CSS styling for validation messages and minor formatting fix |
…ing-mandatory-fields-fix
…r control submission
…n to validation and add oninput and onblur
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 8 out of 11 changed files in this pull request and generated 5 comments.
Files not reviewed (1)
- src/Umbraco.Web.UI.Login/package-lock.json: Language not supported
# Conflicts: # src/Umbraco.Web.UI.Login/src/localization/lang/en.ts
to be conventional and kebab-cased.
leekelleher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested out, all working as expected! 🚀
I amended the filenames of the SVG "eye" icons for consistency.
Added custom validation for missing password and user/email
Added support for the message to use Localization
Moved the logic that checks for empty username and password from login.page.element.ts to auth.element.ts
login.example.mp4