9👍
✅
This isn’t a thing that you can do in a signal. Those are for things like updating a database row, or sending an email, when a specific action happens. They can’t affect the response in any way, because that is managed by the view.
Your redirection code needs to move into the login view itself; just do the check after you call auth.login()
.
Source:stackexchange.com