Better username validator and remove trailing whitespace

This commit is contained in:
Mouse Reeve
2020-12-15 15:52:22 -08:00
parent 9d7ad3c492
commit 710fbc949b
2 changed files with 10 additions and 3 deletions

View File

@ -66,7 +66,7 @@ def register(request):
if not form.is_valid():
errors = True
username = form.data['username']
username = form.data['username'].strip()
email = form.data['email']
password = form.data['password']