diff --git a/backend/areas/users/users.py b/backend/areas/users/users.py index 0d4bf0eee5e94a5fbb76c6017d086c5cdfb8a5d6..68d04d38baa8ad40f906caa9c4dbca82058ae690 100644 --- a/backend/areas/users/users.py +++ b/backend/areas/users/users.py @@ -28,7 +28,7 @@ def get_user(id): res = UserService.get_user(id) return jsonify(res) -@api_v1.route("/users/<string:id>/recovery", methods=["GET"]) +@api_v1.route("/users/<string:id>/recovery", methods=["POST"]) @jwt_required() @cross_origin() @admin_required() diff --git a/frontend/src/services/users/redux/actions.ts b/frontend/src/services/users/redux/actions.ts index e038ce88424372fc244899048a7815660cec3aff..9fc8770d4ec06109a73a736c0a9aa9e4e0ae0159 100644 --- a/frontend/src/services/users/redux/actions.ts +++ b/frontend/src/services/users/redux/actions.ts @@ -191,7 +191,7 @@ export const fetchRecoveryLink = (id: string) => async (dispatch: Dispatch<any>) try { const { data } = await performApiCall({ path: `/users/${id}/recovery`, - method: 'GET', + method: 'POST', }); dispatch({