Re: [web2py] Re: login_bare not working

2018-12-12 Thread Anthony
On Tuesday, December 11, 2018 at 1:58:11 PM UTC-5, Ben Duncan wrote: > > Your right: should be: > Controller: > def user_bare(): > username, password = request.post_vars['username'], > request.post_vars['password'] > if not auth.user: >form = auth.login_bare(username, password) >

Re: [web2py] Re: login_bare not working

2018-12-11 Thread Ben Duncan
Your right: should be: Controller: def user_bare(): username, password = request.post_vars['username'], request.post_vars['password'] if not auth.user: form = auth.login_bare(username, password) return dict(form=form) View: {{extend 'layout.html'}}

Re: [web2py] Re: login_bare not working

2018-12-11 Thread Yoel Benitez Fonseca
probably abastardi wants: username, password = request.post_vars['username'], request.post_vars['password'] if not auth.user: auth.login_bare(username, password) What is that's for ... i can only guest... On Dec 11 2018, at 11:58 am, Anthony wrote: > > > > > > > > > What is the point of

[web2py] Re: login_bare not working

2018-12-11 Thread Anthony
> > username, password = request.post_vars['username'], > request.post_vars['password']if not auth.login_bare(username, password): > auth.login_bare(username, password) > > What is the point of calling login_bare a second time after it has failed the first time? > What I click to fire