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:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user