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:
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue