I found an old thread: https://groups.google.com/forum/?fromgroups#!searchin/web2py/auth.login()$20from$20inside$20a$20component/web2py/Qg4AAePIlJw/tOTdGwtAj6EJ
The discussion stopped at some point. On Friday, March 30, 2012 7:08:10 AM UTC-7, Anthony wrote: > > On Friday, March 30, 2012 2:22:42 AM UTC-4, thstart wrote: >> >> Thank you, could you please post an example? >> > > Perhaps someone else has a full working example. You just need a form on > the page that gets posted via Ajax (see > http://web2py.com/books/default/chapter/29/11#The-ajax-function), and > then check the submitted credentials with auth.login_bare (see > http://web2py.com/books/default/chapter/29/9#Manual-Authentication). > > Anthony >