Skip to content
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

Validate email for member models #17532

Merged
merged 8 commits into from
Nov 25, 2024

Conversation

Zeegaan
Copy link
Member

@Zeegaan Zeegaan commented Nov 14, 2024

Fixes #17512

Notes

  • Implement string extension method to check whether a string is valid email
  • Add check in the ValidateModel of MemberService, to check whether a member is given a valid email.

How to test

  • Follow steps in original issue.

@elit0451
Copy link
Member

Also we need to remember to cherry-pick this to Umbraco 14 ❗

Copy link
Member

@elit0451 elit0451 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 💪

@Zeegaan Zeegaan merged commit 6b0f8e7 into v15/dev Nov 25, 2024
16 of 17 checks passed
@Zeegaan Zeegaan deleted the v15/bugfix/validate-emails-for-member-update branch November 25, 2024 12:55
Zeegaan added a commit that referenced this pull request Nov 25, 2024
* Validate email for member models

* Add null check or more test cases

* return invalid when not a valid email

* Cleanup

* remove private method in favor of extension

* Remove non used, using statement

---------

Co-authored-by: Elitsa <elm@umbraco.dk>
(cherry picked from commit 6b0f8e7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants