Skip to content

Commit

Permalink
Remove unused test endpoint for retrieving player by email
Browse files Browse the repository at this point in the history
  • Loading branch information
Vianpyro committed Nov 17, 2024
1 parent 5bf0cbc commit c8fee35
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions routes/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,3 @@ def login():
return jsonify(message="Login successful"), 200
except exceptions.VerifyMismatchError:
return jsonify(message="Invalid credentials"), 401


@authentication_blueprint.route("/test", methods=["POST"])
def get_player_by_email():
data = request.get_json()
email = data.get("email")

db = get_db_connection()
with db.cursor() as cursor:
cursor.callproc("login_player", (email,))
player = cursor.fetchone()
db.close()

return jsonify(player)

0 comments on commit c8fee35

Please sign in to comment.