diff --git a/bookwyrm/view_actions.py b/bookwyrm/view_actions.py index c87c36b2..c0a1e866 100644 --- a/bookwyrm/view_actions.py +++ b/bookwyrm/view_actions.py @@ -39,11 +39,7 @@ def user_login(request): if user is not None: login(request, user) return redirect(request.GET.get('next', '/')) - return TemplateResponse( - request, - 'login.html', - {'login_form': login_form, 'register_form': register_form} - ) + return redirect('/login') def register(request):