This is in my controller:
registrationForm = auth.register()
UN = registrationForm.element("#user_username")
UN["_placeholder"] = "Username"
UN["_name"] = "regForm_username" # This is what causes the error.
and this is in my view:
{{=registrationForm}}
The registraionForm does not allow me to register a new user if the line
that changes the name of the #user_username id exists in the controller.
Once you remove it, the registration form starts to work fine. The same
occurs with the login form. If you change the name of the username or
password field, it doesn't allow you to log in.
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}}
>
--