Skip to content

Commit

Permalink
Merge pull request #869 from wklken/fix_login_fail_message
Browse files Browse the repository at this point in the history
Fix login fail message
  • Loading branch information
wklken authored Apr 13, 2022
2 parents 64f4e84 + ac581e8 commit 15d0f54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paas2/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.14.5
2.14.6
2 changes: 1 addition & 1 deletion paas2/login/backends/bk.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def authenticate(self, username=None, password=None, language="", **kwargs):
# PASSWORD_EXPIRED = 3210018
if code in [3210021, 3210018]:
raise PasswordNeedReset(message=message, reset_password_url=userinfo.get("reset_password_url"))
message = _("调用用户管理接口失败,请联系管理员, 查看登录日志获取错误详情")
# message = _("调用用户管理接口失败,请联系管理员, 查看登录日志获取错误详情")
raise AuthenticationError(message=message, redirect_to=userinfo.get("redirect_to"))

# here we got the userinfo, but the language is not update yet(async in signal)
Expand Down
3 changes: 3 additions & 0 deletions paas2/release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Release Log
===============================
# 2.14.6
- bugfix: login show error message from bk-user

# 2.14.5
- bugfix: login password wrong 500
- update: login reset password if it's an initial password or password expired
Expand Down

0 comments on commit 15d0f54

Please sign in to comment.