Skip to content

Commit

Permalink
fix 2024 groups
Browse files Browse the repository at this point in the history
  • Loading branch information
RTXUX committed Oct 24, 2024
1 parent a4e064c commit 16b841d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/auth_providers/sjtu.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class GetCodeView(ExternalGetCodeView):


urlpatterns = [
path('ouc/login/', LoginView.as_view()),
path('ouc/get_code/', GetCodeView.as_view()),
path('sjtu/login/', LoginView.as_view()),
path('sjtu/get_code/', GetCodeView.as_view()),
]
2 changes: 1 addition & 1 deletion frontend/auth_providers/xmut.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]{9}$')
validate_identity = UserRegexAndDomainEmailValidator('s.xmut.edu.cn', r'^[0-9]+$')


urlpatterns = [
Expand Down

0 comments on commit 16b841d

Please sign in to comment.