From cb010470a9a6347b8d9efef245a8f9693862dd6e Mon Sep 17 00:00:00 2001 From: starnakin Date: Tue, 24 Oct 2023 16:34:38 +0200 Subject: [PATCH] backend: fix: error message --- django/trancendence/accounts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/trancendence/accounts/views.py b/django/trancendence/accounts/views.py index b65efb9..041140b 100644 --- a/django/trancendence/accounts/views.py +++ b/django/trancendence/accounts/views.py @@ -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")