I actually missed a lot of ways of customizing authentication
services. You can have a look at the web2py book. (Chapter 8.3 on
authorization)

Section 8.3.6 covers customization with auth object settings

There is an auth settings attribute called long_expiration (specified
in seconds) wich controls the user's session expiration time.

User session expiration is treated here:
http://groups.google.com/group/web2py/browse_thread/thread/e70e186d960d7163/c33cd28bb4e37bf4

On Dec 1, 8:55 pm, Alan Etkin <[email protected]> wrote:
> 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