forked from mirrors/bookwyrm
Fixes login flow
This commit is contained in:
parent
b331978964
commit
c8348606da
1 changed files with 1 additions and 5 deletions
|
@ -39,11 +39,7 @@ def user_login(request):
|
||||||
if user is not None:
|
if user is not None:
|
||||||
login(request, user)
|
login(request, user)
|
||||||
return redirect(request.GET.get('next', '/'))
|
return redirect(request.GET.get('next', '/'))
|
||||||
return TemplateResponse(
|
return redirect('/login')
|
||||||
request,
|
|
||||||
'login.html',
|
|
||||||
{'login_form': login_form, 'register_form': register_form}
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def register(request):
|
def register(request):
|
||||||
|
|
Loading…
Reference in a new issue