Skip to content

Commit

Permalink
added response code
Browse files Browse the repository at this point in the history
  • Loading branch information
n1lby73 committed Dec 16, 2023
1 parent f336bcb commit 4ff4c9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web-ui/webApp/apiRoute.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def post(self):

if logged_user.otp != user_otp:

return ({"Error": "Invalid otp entered"})
return ({"Error": "Invalid otp entered"}), 400

currentTime = time.time()

Expand All @@ -413,7 +413,7 @@ def post(self):

db.session.commit()

return ({"error": "Expired otp, request for a new one"})
return ({"error": "Expired otp, request for a new one"}), 400

except Exception as e:

Expand All @@ -435,7 +435,7 @@ def post(self):

db.session.commit()

return ({"Success": "Email verified successfully"})
return ({"Success": "Email verified successfully"}), 200

except Exception as e:

Expand Down

0 comments on commit 4ff4c9e

Please sign in to comment.