Skip to content

Commit

Permalink
neu: fix email validation
Browse files Browse the repository at this point in the history
  • Loading branch information
RTXUX authored Oct 17, 2023
1 parent ed2b45a commit 17db75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/auth_providers/neu.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LoginView(ExternalLoginView):
class GetCodeView(ExternalGetCodeView):
provider = 'neu'
duration = timedelta(hours=1)
validate_identity = UserRegexAndDomainEmailValidator('stu.neu.edu.cn', r'^((20(19|20|21|22)1?\d{4})|((19|20|21|22)\d{5}))$')
validate_identity = DomainEmailValidator('stu.neu.edu.cn')


urlpatterns = [
Expand Down

0 comments on commit 17db75e

Please sign in to comment.