[web2py] Re: Custom Login View

2017-03-24 Thread Happy Rob
SOLVED Hi Marlysson Thanks for your help In the end I didn't need to do any defining or anything too much. For 1 (failed login), I put the auth settings into the controller instead of the model For 2. (selecting login page) I also put the auth settings into the controller For 3. (logout) I

[web2py] Re: Custom Login View

2017-03-24 Thread Marlysson Silva
1. By analysing the web2py's code I find this line: https://github.com/web2py/web2py/blob/master/gluon/tools.py#L1520 Basically you should define a url to redirect when login fails. And internally aƧthe parameter ( next=??) that you want to do. https://github.com/web2py/web2py/blob/master/gluo