Browse Source

when registering replaced spaces with underscores (otherwise breaks log reading), also stopped being allowed to register 'scores' as would mess up the score system

master
jamescoxon 2 months ago
parent
commit
8420ab246d
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      run.py

+ 5
- 0
run.py View File

@@ -118,6 +118,11 @@ def search_form():
return status

username = request.form['username'].lower()
username.replace(' ', '_')

if 'scores' in username:
return 'Sorry you cannot use a username with scores in the string'

nanoaddress = request.form['nanoaddress'].lower()
player = r.get('player_count').decode('utf-8')
if int(player) < 0:

Loading…
Cancel
Save