1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 20:37:42 +00:00

force change user password when admin add new user

This commit is contained in:
lian
2021-08-02 17:36:33 +08:00
parent 75f0fd5dd4
commit 968e4b5051

View File

@@ -689,6 +689,9 @@ class AdminUsers(APIView):
admin_operation.send(sender=None, admin_name=request.user.username,
operation=USER_ADD, detail=admin_op_detail)
if config.FORCE_PASSWORD_CHANGE:
UserOptions.objects.set_force_passwd_change(email)
return Response(user_info)