[web2py] Re: How to link @auth.requires_login() to custom login view?
Thank you.
[web2py] Re: How to link @auth.requires_login() to custom login view?
auth.settings.login_url = URL('your_controller', 'signin') On Friday, December 9, 2011 11:08:33 PM UTC-5, Constantine Vasil wrote: > > I am using in a custom made login function: > > def signin(): > > form=current.app.auth.login(next=login_next) > > > Now I want to add @auth.requires_login() to my other functions. > > The question is how to link @auth.requires_login() to my function 'signin'? > > >