Skip to content

Commit

Permalink
auth: update xmut mail rule
Browse files Browse the repository at this point in the history
RTXUX committed Nov 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 66e06ad commit 80077b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/auth_providers/xmut.py
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ class LoginView(ExternalLoginView):
class GetCodeView(ExternalGetCodeView):
provider = 'xmut'
duration = timedelta(hours=1)
validate_identity = UserRegexAndDomainEmailValidator('s.xmut.edu.cn', r'^[0-9]+$')
validate_identity = UserRegexAndDomainEmailValidator(['s.xmut.edu.cn', 'stu.xmut.edu.cn'], r'^[0-9]+$')


urlpatterns = [

0 comments on commit 80077b8

Please sign in to comment.