[web2py] Re: Requires login decorator error

2010-12-21 Thread Brad Corson
I saw where the default was being set, but couldn't find anywhere that we were overriding that value. I will tour through it again and see if I can pick it out this time. Thanks, Brad On Dec 21, 12:37 pm, mdipierro wrote: > By default it should be > > auth.settings.on_failed_authentication = lam

[web2py] Re: Requires login decorator error

2010-12-21 Thread mdipierro
By default it should be auth.settings.on_failed_authentication = lambda x: redirect(x) auth.settings.on_failed_authentication can be a function or a url. You must set it to None somewhere. On Dec 16, 8:02 pm, NuclearDragon wrote: > I was getting an error when attempting to go to a page that r

[web2py] Re: Requires login decorator error

2010-12-21 Thread Brad Corson
Any insights as to why self.settings.on_failed_authentication is None at this point? Should I be setting that value somewhere? It's difficult for me to tell what the value should be, since with my change it still returns to the login page with a flash message of "Invalid Login". On Dec 16, 9:02 p