I would just edit the user.html and add
{{if request.args(0)=='login':}}
{{=form.custom.begin}}
... the rest of your custom form.
{{=form.custom.end}}
{{pass}}
On Wednesday, 5 September 2012 23:51:22 UTC-5, Alec Taylor wrote:
>
> I want to override the default auth.login(), so wherever auth.login is
> called my customised login form appears. Here are the customisations I've
> made to it in my view [which works]:
>
> for label in form.elements('label'):
> if label[-1]!='Remember me (for 30 days)':
> label["_style"] = "display:none;"
> email = {"email": "email address",}
> pwd = {"password": "password"}for input in form.elements("input[type=text]"):
> input["_placeholder"] = email.get(input["_name"], "")for input in
> form.elements("input[type=password]"):
> input["_placeholder"] = pwd.get(input["_name"], "")
> form.elements('input[type=submit]')[0]["_value"] = "Login"
> form.elements('input[type=submit]')[0]["_class"] = "btn btn-large btn-primary"
>
>
> How can I perform this override?
>
> Thanks for all suggestions,
>
> Alec Taylor
>
--