I think we need to add url_login in Auth init, I get <type 'exceptions.SyntaxError'> setting key 'url_login' does not exist I try login_url, it don't return ticket but it not working...
web2py 2.4.7 Richard On Wed, Sep 18, 2013 at 3:21 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > Right! > > That what I thougth to do at first I should had just did that instead of > fixing something :) > > Thanks. > > Richard > > > On Wed, Sep 18, 2013 at 2:54 PM, Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> This cannot be fixed at the level of gluon/tools.py because some users >> may want an ajax login form. Those users should be free to create a >> default/user.load view. >> In your case you simply need to do (in model): >> >> auth.settings.url_login = URL('default','user',args='login', >> extension=False) >> >> >> >> On Wednesday, 18 September 2013 08:51:08 UTC-5, Richard wrote: >> >>> Adding extention='html' at line 1163 in tools.py seems to solve the >>> issue : >>> >>> url_login = URL(controller, function, args='login', extension='html') >>> >>> Or extension=False >>> >>> url_login = URL(controller, function, args='login', extension=False) >>> >>> The latter probably better >>> >>> Richard >>> >>> >>> >>> On Wed, Sep 18, 2013 at 9:37 AM, Richard <ml.richa...@gmail.com> wrote: >>> >>>> >>>> Hello, >>>> >>>> In case a component trigger a NOT AUTHORIZED popup, the login redirect >>>> link propagate the .load of the component : >>>> >>>> NOT AUTHORIZEDPlease >>>> login<http://127.0.0.1:8000/sgddms/default/user.load/login?_next=http%3A//127.0.0.1%3A8000/sgddms/default/index%23> >>>> to >>>> view this content. >>>> >>>> >>>> The link look like that : >>>> http://127.0.0.1:8000/app/**default/user<http://127.0.0.1:8000/app/default/user> >>>> *.load*/login?_next=**url... >>>> >>>> This occure in web2py 2.4.7 >>>> >>>> Richard >>>> >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/**web2py >>>> <http://github.com/web2py/web2py>(Source code) >>>> - >>>> https://code.google.com/p/**web2py/issues/list<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 web2py+un...@**googlegroups.com. >>>> >>>> For more options, visit >>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>>> . >>>> >>> >>> -- >> 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 web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.