Better username validator and remove trailing whitespace
This commit is contained in:
@ -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']
|
||||
|
||||
|
Reference in New Issue
Block a user