From f1b1c976732780fd4e6d5a7625813abcf8e89aad Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Wed, 9 Oct 2024 17:10:37 +0200 Subject: [PATCH] maybe --- alkatorapi/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alkatorapi/views.py b/alkatorapi/views.py index e21d36c..c273898 100644 --- a/alkatorapi/views.py +++ b/alkatorapi/views.py @@ -53,7 +53,7 @@ def login(request): except MultiValueDictKeyError: return HttpResponse('{"reason":"Nezadané jméno nebo heslo!"}', status=400, content_type='application/json') if user is not None: - login(user) + login(request) return HttpResponse('{"success":"Úspěšně přihlášen uživatel '+ user.email + '"}', content_type='application/json') else: return HttpResponse('{"reason":"Nesprávné jméno nebo heslo!"}', status=400, content_type='application/json')