Skip to content

Commit

Permalink
modified response
Browse files Browse the repository at this point in the history
  • Loading branch information
n1lby73 committed Jan 2, 2024
1 parent bdf4010 commit 432f3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-ui/webApp/apiRoute.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def post(self):
user = users.query.filter_by(email=email).first()

if not user or not check_password_hash(user.password, password):
return jsonify({"msg": "incorrect credentials"}), 400
return jsonify({"error": "incorrect credentials"}), 400

loggedUser = {"email":email, "username":user.username, "role":user.role, "verified":user.verifiedEmail}
refresh_token = create_refresh_token(identity=loggedUser)
Expand Down

0 comments on commit 432f3bd

Please sign in to comment.