See 
http://web2py.com/books/default/chapter/29/09/access-control#Authentication. 
If you use the auth.requires_login() decorator (or any of the other Auth 
decorators), users who are not logged in will be directed to login (and 
then back to their originally requested page after login).

Anthony

On Sunday, December 13, 2015 at 8:09:46 PM UTC-5, RAGHIB R wrote:
>
> Like in case of facebook, one has to pass through a login page. If one 's 
> logged in he will be redirected to home page otherwise login.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to