From 851ebbe930295815a16ca9b39cb666ff73600a6a Mon Sep 17 00:00:00 2001 From: Rezaul Karim Shaon Date: Wed, 24 Jul 2024 19:59:30 +0600 Subject: [PATCH] frontend: profile - change password confirm password field added --- backend/user_api/urls/v1.py | 5 +++++ backend/user_api/views/v1.py | 5 +++++ .../src/components/admin/user/AdminChangePasswordModal.vue | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/backend/user_api/urls/v1.py b/backend/user_api/urls/v1.py index 65c37fb..fd45657 100644 --- a/backend/user_api/urls/v1.py +++ b/backend/user_api/urls/v1.py @@ -24,4 +24,9 @@ v1_view.UserProfileView.as_view(), name='profile', ), + path( + 'changepassword', + v1_view.ChangeUserPasswordView.as_view(), + name='change_password', + ) ] diff --git a/backend/user_api/views/v1.py b/backend/user_api/views/v1.py index 2de8847..9dd56be 100644 --- a/backend/user_api/views/v1.py +++ b/backend/user_api/views/v1.py @@ -126,3 +126,8 @@ def post(self, request): class UserProfileView(APIView): def get(self, request, *args, **kwargs): return Response(UserSerializer(request.user).data) + + +class ChangeUserPasswordView(APIView): + def put(self, request, *args, **kwargs): + return Response({}) diff --git a/frontend/src/components/admin/user/AdminChangePasswordModal.vue b/frontend/src/components/admin/user/AdminChangePasswordModal.vue index 17893d0..cc7511d 100644 --- a/frontend/src/components/admin/user/AdminChangePasswordModal.vue +++ b/frontend/src/components/admin/user/AdminChangePasswordModal.vue @@ -19,6 +19,11 @@ +
+ + +