diff --git a/frontend/auth_providers/xmut.py b/frontend/auth_providers/xmut.py index 38b47b7..6c5f57d 100644 --- a/frontend/auth_providers/xmut.py +++ b/frontend/auth_providers/xmut.py @@ -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 = [