diff --git a/apps/authentication/utils.py b/apps/authentication/utils.py index f06b6ef15..1f190bef5 100644 --- a/apps/authentication/utils.py +++ b/apps/authentication/utils.py @@ -27,7 +27,7 @@ def check_user_valid(**kwargs): if user is None: return None, errors.reason_user_not_exist elif user.is_expired: - return None, errors.reason_password_expired + return None, errors.reason_user_inactive elif not user.is_active: return None, errors.reason_user_inactive elif user.password_has_expired: diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index 39d51220e..2f408e224 100644 Binary files a/apps/locale/zh/LC_MESSAGES/django.mo and b/apps/locale/zh/LC_MESSAGES/django.mo differ