diff --git a/alkatorapi/views.py b/alkatorapi/views.py index dab5e1e..d29dc8f 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(request, user) + login(request=request, user=user) 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') diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index f0c4464..3d22584 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -172,7 +172,7 @@ class Main extends Component { {this.state.page == "#login" &&