From 80077b8836ff5b1f76dbde58a9ab5d5ece654f38 Mon Sep 17 00:00:00 2001 From: RTXUX Date: Fri, 1 Nov 2024 13:59:40 +0000 Subject: [PATCH] auth: update xmut mail rule --- frontend/auth_providers/xmut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [