Skip to content

Commit

Permalink
fix for subdomain emails
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondbca committed Feb 13, 2024
1 parent 83b5c13 commit d28bcab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledgergw/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ def create_get_emailuser(request,apikey):
email = data['email']

regex_one_dot = '^[a-z0-9\._+]+[@]\w+[.]\w+$'
regex_two_dot = '^[a-z0-9\._+]+[@]\w+[.]\w{2,3}[.]\w{2}$'
regex_two_dot = '^[a-z0-9\._+]+[@]\w+[.]\w+[.]\w+$'
regex_three_dot = '^[a-z0-9\._+]+[@]\w+[.]\w{2,3}[.]\w{2,3}\w[.]\w{2}$'

if re.match(regex_one_dot,email) or re.match(regex_two_dot,email) or re.match(regex_three_dot,email):
Expand Down

0 comments on commit d28bcab

Please sign in to comment.