From c8348606da914c89c7f7db0292e937b9eb8ec922 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 2 Oct 2020 15:01:22 -0700 Subject: [PATCH] Fixes login flow --- bookwyrm/view_actions.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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):