How do I tell when the last login was?
Hi I want to know when the last login of a Zopeuser was. I use the normal acl_users of Zope. Is there something similar to bobobase_modification_time? If not, where do I start to add such functionality? Thanx Oliver -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
I want to know when the last login of a Zopeuser was. I use the normal acl_users of Zope. Is there something similar to bobobase_modification_time? If not, where do I start to add such functionality?
When you log in to zope.org, it has a "What's New" link off to the side. Visit there and view the DTML source to see how they do it there. Dunno if it's built-in or zope.org magic, but it's a place to start. --jcc (dark widardry?)
On 12 Jul 2001 10:00:41 +0200, Oliver Erlewein wrote:
Hi
I want to know when the last login of a Zopeuser was. I use the normal acl_users of Zope. Is there something similar to bobobase_modification_time? If not, where do I start to add such functionality?
You would add a property to the user object, called for example, last_login. Then, in your login script (assuming use of a login form, and not HTTP Auth), aka the 'you ar enow loggd in' mehtod, you update the field on the user. You could look at the DTML source for zope.org, or look at the source in the Zope membership Component. Bill
participants (3)
-
Bill Anderson -
J. Cameron Cooper -
Oliver Erlewein