From f8f783745c121018ccdd682dddc9e433a89009b3 Mon Sep 17 00:00:00 2001 From: xinwen Date: Mon, 13 Sep 2021 10:56:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=8F=91=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/api/profile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/users/api/profile.py b/apps/users/api/profile.py index 02bdda07c..372ed5809 100644 --- a/apps/users/api/profile.py +++ b/apps/users/api/profile.py @@ -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,)