Thank you, Anthony! I will check it out.
To get rid of the checkbox, set auth.settings.remember_me_form=False.
To set the long login, I think it just looks for the existence of
request.vars.remember (which would be there if the checkbox were included
in the form and checked). So, you should be able to force the long login by
adding a
In this thread Massimo covers the user session administration.
http://groups.google.com/group/web2py/browse_thread/thread/ab2ace730fd85578/d7ca6ed70b1a4d4c
Have you tried setting a long (in seconds) auth.settings.expiration
value?
On Dec 2, 2:04 am, Constantine Vasil wrote:
> Thank you. Actually
Thank you. Actually I have more pressing issue - the session expires very
quickly
and the user has to login after several minutes (don't know exactly)
in-activity.
How to set it for example 1 hour? When I have presentations this quick
expiration is annoying.
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 contro
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 custom
6 matches
Mail list logo