mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 04:48:03 +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,
|
admin_operation.send(sender=None, admin_name=request.user.username,
|
||||||
operation=USER_ADD, detail=admin_op_detail)
|
operation=USER_ADD, detail=admin_op_detail)
|
||||||
|
|
||||||
|
if config.FORCE_PASSWORD_CHANGE:
|
||||||
|
UserOptions.objects.set_force_passwd_change(email)
|
||||||
|
|
||||||
return Response(user_info)
|
return Response(user_info)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user