Skip to content

Commit

Permalink
Allow any valid email apart from cjsm.net
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Paige committed May 23, 2024
1 parent a0dc984 commit 256ec37
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions b2c/custom_policies/demo/SignUpOrSignin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,22 @@
<ClaimType Id="email">
<Restriction>
<Pattern
RegularExpression="^[a-zA-Z0-9.!#$%&amp;'^_`{}~\-]+@(justice\.gov\.uk|hmcts\.net|ejudiciary\.net|.+\.cjsm\.net|cps\.gov\.uk)"
HelpText="Please enter a email address from one of the following domains: justice.gov.uk, hmcts.net, ejudiciary.net, .cjsm.net, cps.gov.uk."
RegularExpression="^[a-zA-Z0-9.!#$%&amp;'^_`{}~\-+]+@[^\s@]+(?&lt;!cjsm\.net)$"
HelpText="cjsm.net email addresses are not supported. Please enter a valid email address."
/>
</Restriction>
</ClaimType>
</ClaimsSchema>


<Localization>
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<LocalizedString
ElementType="ClaimType"
ElementId="email"
StringId="PatternHelpText"
>Please enter a email address from one of the following domains: justice.gov.uk, hmcts.net, ejudiciary.net, .cjsm.net, cps.gov.uk.</LocalizedString>
>cjsm.net email addresses are not supported. Please enter a valid email address.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
</Localization>
Expand Down

0 comments on commit 256ec37

Please sign in to comment.