What do you mean by "logging-in-site" -- are you just talking about the 
default login URL (i.e., /default/user/login)?

You can set the login URL via:

auth.settings.login_url = URL(...)

See http://web2py.com/book/default/chapter/08#Settings-and-Messages.

Anthony

On Wednesday, December 7, 2011 2:02:34 PM UTC-5, Rick wrote:
>
> Hi,
>
> From my controller file:
>
> @auth.requires_login()
> def create():
>     ...
>
> def somethingelse():
>     ...
>
> When the user isn't logged in but tries to open the site
> "create.html", then he's redirected to the logging-in-site. My problem
> is that I'd like the user to be redirected to "somethingelse.html"
> instead of the logging-in-site. How to code that?
>
> Thanks in advance for help
>
>

Reply via email to