Skip to content

Commit

Permalink
debugging network error on frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
n1lby73 committed Jan 4, 2024
1 parent b21374a commit 143afa6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web-ui/webApp/apiRoute.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def verifyEmailRequest():

except:

return jsonify({"error":"no authorization header in request"}), 400
return ({"error":"no authorization header in request"}), 400

decoded_token = decode_token(token)
payload = decoded_token['sub']
Expand All @@ -63,7 +63,7 @@ def verifyEmailRequest():

if logged_user.verifiedEmail != "True":

return jsonify({"error":"email verification not completed"}), 403
return ({"error":"email verification not completed"}), 403

@app.before_request
def verifyUserLogin():
Expand Down Expand Up @@ -128,12 +128,12 @@ def __init__(self):

def put(self):

user = get_jwt_identity()
role = user["role"]
# user = get_jwt_identity()
# role = user["role"]

if role == "user":
# if role == "user":

return ({"error":"not authorized"}), 401
# return ({"error":"not authorized"}), 401

args = self.parser.parse_args()
pnon = args["pin"]
Expand Down

0 comments on commit 143afa6

Please sign in to comment.