[web2py] Re: How to link @auth.requires_login() to custom login view?

2011-12-09 Thread Anthony
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'?




[web2py] Re: How to link @auth.requires_login() to custom login view?

2011-12-09 Thread Constantine Vasil
Thank you.