Skip to content

Commit

Permalink
optimization: 登录跳转取消弹框 (close TencentBlueKing#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Jun 30, 2022
1 parent 8e2928e commit d39841b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 0 additions & 9 deletions config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@

from .patchers import logging


def redirect_func(request):
login_page_url = reverse("account:login_page")
next_url = "{}?refer_url={}".format(login_page_url, request.path)
return HttpResponseRedirect(next_url)


BLUEAPPS_PAGE_401_RESPONSE_FUNC = redirect_func

# ===============================================================================
# 运行时,用于区分环境差异
# ===============================================================================
Expand Down
3 changes: 3 additions & 0 deletions dev_log/2.2.18/crayon_202206301737.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
optimization:
- "登录跳转取消弹框 (close #843)"

0 comments on commit d39841b

Please sign in to comment.