{{=form.hidden_fields()}}
{{=form.custom.end}}
should just be
{{=form.custom.end}}
it includes the hidden fields.
On Wednesday, 15 August 2012 20:38:35 UTC-5, shartha wrote:
>
> Thanks Anthony for trying to help.
>
> Lol, I don't know I even mentioned CSS. Just to clarify, yes, I get the
> "invalid login" flash alert. I put the code as posted here in my
> layout.html file. I have the issue regardless of the page I am on.
>
> This is the code as it appears in the layout:
> {{if not auth.user:}}
> <div id="loginForm">
> {{form=auth.login()}}
> {{=form.custom.begin}}
> Username:
> {{=form.custom.widget.username}}
> </br>
> Password:
> {{=form.custom.widget.password}}
> {{=form.custom.submit}}
> {{=form.hidden_fields()}}
> {{=form.custom.end}}
> </div>
> {{pass}}
>
>
> On Tuesday, August 14, 2012 10:51:12 PM UTC-7, shartha wrote:
>>
>> Hello,
>> Quick question:
>> Instead of {{=auth.login()}}, I am using the following to be able to
>> customize my login form. However the resulting form does not work and I
>> cannot login with the same username/password that enable me to login if I
>> had used {{=auth.login()}} -- I get the flash error: Invalid Login.
>>
>> Could someone please tell me what's possibly going wrong? Thanks!
>>
>> {{form=auth.login()}}
>> {{=form.custom.begin}}
>> Username:
>> {{=form.custom.widget.username}}
>> </br>
>> Password:
>> {{=form.custom.widget.password}}
>> {{=form.custom.submit}}
>> {{=form.custom.end}}
>>
>
--