Skip to content

Conversation

@MrHutmat
Copy link
Contributor

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

Copilot AI review requested due to automatic review settings September 23, 2025 11:24
Copy link
Contributor

Copilot AI left a 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

@leekelleher leekelleher removed their request for review November 5, 2025 13:44
@iOvergaard iOvergaard requested a review from Copilot November 5, 2025 15:55
@leekelleher leekelleher self-requested a review November 5, 2025 16:04
Copy link
Contributor

Copilot AI left a 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.

@iOvergaard iOvergaard changed the title Added custom validation for missing password and user/email Login: Added custom validation for missing password and user/email on the login form Nov 5, 2025
Copy link
Contributor

Copilot AI left a 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

Copy link
Member

@leekelleher leekelleher left a 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.

@leekelleher leekelleher enabled auto-merge (squash) November 10, 2025 09:48
@leekelleher leekelleher merged commit 73fd52a into main Nov 10, 2025
25 of 26 checks passed
@leekelleher leekelleher deleted the v16/bugfix/login-missing-mandatory-fields-fix branch November 10, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants