mirror of https://github.com/jumpserver/jumpserver
[Update] 修改消息
parent
6ce9815d51
commit
8de863525a
|
@ -27,7 +27,7 @@ def check_user_valid(**kwargs):
|
||||||
if user is None:
|
if user is None:
|
||||||
return None, errors.reason_user_not_exist
|
return None, errors.reason_user_not_exist
|
||||||
elif user.is_expired:
|
elif user.is_expired:
|
||||||
return None, errors.reason_password_expired
|
return None, errors.reason_user_inactive
|
||||||
elif not user.is_active:
|
elif not user.is_active:
|
||||||
return None, errors.reason_user_inactive
|
return None, errors.reason_user_inactive
|
||||||
elif user.password_has_expired:
|
elif user.password_has_expired:
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue