For myself I made a kind of gate login page like ubuntu... So as long as you
are not loged on you don't access the page and see noting except the login
page...

But, for sure it's not applicable to all situation...

The only problem with my design is that I can't byte compile cause I return
from the controller the proper layout to be shown to the user if he is loged
or not...

Richard

On Wed, Sep 7, 2011 at 7:22 PM, Chris Steel <[email protected]> wrote:

> A long time ago someone talked about adding a message parameter to
> @auth.requires_login() so that a message could be passed but it does not
> seem to be working:
>
> Example:
>
> @auth.requires_login(message=T('You need to be log in to perform this
> action'))
> def blog_create_entry:
>     bla bla bla
>     return...
>
> Did this ever get added or can we do this another way. Right now users are
> automatically redirected to the login screen which I am guessing is a bit
> confusing because we have no message explaining what happened.
>
> Thanks
> --
>
> Christopher Steel
>
> Voice of Access
>

Reply via email to