Skip to content

Fixed Invalid Username/EmailAddress When Containing 'onfocus'#3665

Merged
valadas merged 2 commits intodnnsoftware:developfrom
SergeyDryomin:Bugfix/DNN-33796_Invalid_Username_Email_Address_When_Containing_onfocus
Apr 14, 2020
Merged

Fixed Invalid Username/EmailAddress When Containing 'onfocus'#3665
valadas merged 2 commits intodnnsoftware:developfrom
SergeyDryomin:Bugfix/DNN-33796_Invalid_Username_Email_Address_When_Containing_onfocus

Conversation

@SergeyDryomin
Copy link
Copy Markdown
Contributor

@SergeyDryomin SergeyDryomin commented Apr 7, 2020

Fixes "New user registration/creation doesn't allow for email addresses to contain "onfocus" word"
Fixes #3666

Summary

Solution to replace RegEx
fixed

Not UT's for open source

Invalid Username/Email Address When Containing "onfocus"
@david-poindexter
Copy link
Copy Markdown
Contributor

@SergeyDryomin please create a proper GitHub issue describing the bug/enhancement in detail.
Then reference the issue using the proper GitHub syntax. Then please modify the title for this PR to something that does not contain a JIRA issue number. This is confusing to the open source community because we have no visibility to JIRA issues. Thanks.

new Regex("onerror", RxOptions),
new Regex("onload", RxOptions),
new Regex("onfocus", RxOptions),
new Regex("\bonfocus\b", RxOptions),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would seem like we'd want this change for all of the onwhatever expressions, right?

@SergeyDryomin SergeyDryomin changed the title Bugfix/DNN-33796_Invalid_Username_Email_Address_When_Containing_onfocus Fixed Invalid Username/EmailAddress When Containing 'onfocus' Apr 7, 2020
Copy link
Copy Markdown
Contributor

@david-poindexter david-poindexter 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 to me - thanks @SergeyDryomin 🎉

Copy link
Copy Markdown
Contributor

@mitchelsellers mitchelsellers left a comment

Choose a reason for hiding this comment

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

Lgtm

@valadas valadas added this to the 9.6.0 milestone Apr 14, 2020
@valadas valadas merged commit 028199e into dnnsoftware:develop Apr 14, 2020
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.

Invalid Username/EmailAddress When Containing 'onfocus'

6 participants