If you want to force user login on the page, use the
@auth.requires_login decorator on the corresponding functions.

If you use SQLFORM.grid, you may need to do that only one time per
controller.

You can find out all about it in Chapter 8 of the book.

http://www.web2py.com/book/default/chapter/08#Decorators

A link to the login page is already there.

On Nov 14, 3:58 pm, Chris <[email protected]> wrote:
> Hello,
>
> I'd like to make a login form and have it be accessible in multiple
> pages, without having to rewrite the same code in every single
> controller action:
>
> login_form = auth.login()
> if login_form.accepts(...
>
> Is this possible?
>
> Thanks,
> Chris

Reply via email to