Browse Source

[Update] 修改消息

pull/3428/head
ibuler 5 years ago
parent
commit
8de863525a
  1. 2
      apps/authentication/utils.py
  2. BIN
      apps/locale/zh/LC_MESSAGES/django.mo

2
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:

BIN
apps/locale/zh/LC_MESSAGES/django.mo

Binary file not shown.
Loading…
Cancel
Save