You'll have to show some code. By default, web2py does not redirect 
anywhere when login fails -- it just reloads the login page.

Anthony

On Sunday, February 9, 2014 1:51:04 PM UTC-5, [email protected] wrote:
>
> The problem is that I have a page for the login form, that only can 
> redirect to the home page if the login is valid. But, I can't use 
> @auth.requires_login() because, the home page can be accessed by visitors 
> and in this app just pages like profile cannot be accessed by visitors.
>
> In this case, why the web2py redirects to the home page  even if login was 
> not valid, when I don't use @auth.requires_login()?
>
> How to prevent web2py redirect if login is not valid?
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to