perf: 修复next为空可能会导致的bug

pull/6326/head
ibuler 2021-06-22 11:10:41 +08:00 committed by 老广
parent 01ed4963b8
commit 476a288f32
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class UserLoginView(mixins.AuthMixin, FormView):
# show jumpserver login page if request http://{JUMP-SERVER}/?admin=1
if self.request.GET.get("admin", 0):
return None
next_url = request.GET.get('next') or ''
next_url = request.GET.get('next') or '/'
auth_type = ''
auth_url = ''
if settings.AUTH_OPENID: