backend: fix: error message
This commit is contained in:
parent
a3e2c2f631
commit
cb010470a9
@ -18,7 +18,7 @@ class Register(View):
|
||||
return HttpResponse("error: password invalid")
|
||||
username = request.POST.get("username")
|
||||
if (username == None or len(username) < 3):
|
||||
return HttpResponse("error: password invalid")
|
||||
return HttpResponse("error: username invalid")
|
||||
|
||||
if User.objects.filter(username=username).exists():
|
||||
return HttpResponse("error: username already used")
|
||||
|
Loading…
Reference in New Issue
Block a user