I'm setting auth.settings.login_next but it's not taking. In gluon/
tools.py there's a snippet of code beginning at line 1642:


        ### use session for federated login
        if self.next:
            session._auth_next = self.next
        elif session._auth_next:
            self.next = session._auth_next
        ### pass

        if next is DEFAULT:
            next = self.next or self.settings.login_next

What's happening is that session._auth_next is already set by the time
execution reaches that point, so self.next is getting set to some non-
null value, which is then getting used.

How to prevent session._auth_next getting set? Obviously, I can set it
in a model, but if I do that, then what purpose does
auth.settings.login_next serve?

Reply via email to