Skip to content
Snippets Groups Projects
Commit cba53cc6 authored by Rizky Andyno Ramadhan's avatar Rizky Andyno Ramadhan
Browse files

changed get-user endpoint response

parent 892acb20
1 merge request!5Develop
Pipeline #14310 failed with stage
...@@ -62,9 +62,14 @@ def check_user_existence(): ...@@ -62,9 +62,14 @@ def check_user_existence():
@validate_login_token(pass_user=True) @validate_login_token(pass_user=True)
def get_user_from_token(user): def get_user_from_token(user):
del user.password del user.password
child = [child for child in user.page_list]
for x in child:
del x.subdata
return jsonify({ return jsonify({
"status": 200, "status": 200,
"data": user #sends back all information about user except password "data": user, #sends back all information about user except password
"page_list": child
}) })
@login_route.route("/api/get-user-public", methods=["POST"]) @login_route.route("/api/get-user-public", methods=["POST"])
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment