strip whitespace from participant name in enqueue endpoint

This commit is contained in:
Phillip Kühne 2023-06-30 14:50:32 +02:00
parent b7a79462dc
commit 349eff9a09
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA

View File

@ -37,7 +37,7 @@ def enqueue():
if not helpers.is_valid_uuid(client_id):
print(request.data)
abort(400)
name = request.json['name']
name = request.json['name'].strip()
song_id = request.json['id']
if request.authorization:
entry_id = database.add_entry(name, song_id, client_id)