mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-31 22:36:37 +00:00
fix: 修改密码没有发通知
This commit is contained in:
parent
4fe715d953
commit
f8f783745c
@ -72,6 +72,11 @@ class UserPasswordApi(generics.RetrieveUpdateAPIView):
|
||||
def get_object(self):
|
||||
return self.request.user
|
||||
|
||||
def update(self, request, *args, **kwargs):
|
||||
resp = super().update(request, *args, **kwargs)
|
||||
ResetPasswordSuccessMsg(self.request.user, request).publish_async()
|
||||
return resp
|
||||
|
||||
|
||||
class UserPublicKeyApi(generics.RetrieveUpdateAPIView):
|
||||
permission_classes = (IsAuthenticated,)
|
||||
|
Loading…
Reference in New Issue
Block a user