Fixes login flow

This commit is contained in:
Mouse Reeve 2020-10-02 15:01:22 -07:00
parent b331978964
commit c8348606da

View file

@ -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):