The default scaffolding app calls auth() wich returns a form to be
shown in the client. It is a web2py helper class instance, so it can
be examined and modified. FORM instances have an elements() function
that returns a sequence of childs:

You could modify the user action (in controller) to customize the form
returned by the auth() call. So you would be able to set a default
value to the "remember" checkbox input and hide it (by passing the
attribute _style="display:none;").

Maybe this is not the best approach (deforming the helper output).
There is got to be a simpler way of customization of the standard
scaffolding authentication service that i missed. Or it could be added
as a project task.

On Dec 1, 7:52 pm, Constantine Vasil <[email protected]> wrote:
> I want to set the option Remember me (for 30 days)
> to take effect by default whether or not the user checked
> the checkbox when login. And if possible to hide the checkbox.
>
> How to do that?

Reply via email to