You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The regex example for mails to demonstrate the pattern matching is not correct. The current regex does not match values after "@". If you use this example in your claims you got wrong email validation. The regex is replaced with the correct one from the "EmailBox" example.
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/claimsschema.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,7 +224,7 @@ The following example configures an **email** claim with regular expression inpu
224
224
<UserHelpText>Email address that can be used to contact you.</UserHelpText>
225
225
<UserInputType>TextBox</UserInputType>
226
226
<Restriction>
227
-
<PatternRegularExpression="^[a-zA-Z0-9.+!#$%&'^_`{}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$"HelpText="Please enter a valid email address." />
227
+
<PatternRegularExpression="^[a-zA-Z0-9.+!#$%&'+^_`{}~-]+(?:\.[a-zA-Z0-9!#$%&'+^_`{}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"HelpText="Please enter a valid email address." />
0 commit comments