[Fixed]-Login and logout cause dead cycle

1👍

Your login view requires you to be logged in (@login_required)

So you can never possibly log in because you need to be logged in to log in, but you’re not logged in so you can’t log in because you can’t get to the page to let you log in.

So if you want to be able to login you need to remove the decorator so your login view will not require you to be logged in to be logged in, because after all, if you were logged in then you wouldn’t be trying to login.

👤Sayse

Leave a comment