[Erp5-dev] get last login time

Yoshinori Okuji yo at nexedi.com
Sat Oct 14 14:43:09 CEST 2006


On Friday 13 October 2006 14:15, Bartek Gorny wrote:
> Is it possible in ERP5 (or, rather, in Zope with Pluggable Auth
> Service) to get the last login time of a specified (or current) user?
> I tried to dig in the code, and got to PropertiedUser class, but
> couldn't find the information, and the user has no property sheets
> attached nor any additional attributes. Can such information be
> obtained, then, and how?

As you know, ERP5 is not a session-based application. So the meaning of a 
login time is ambiguous. If the user goes to the login screen, you can record 
a time when passing the login action. But this assumes that the user uses the 
cookie-based authentication. If the user uses the basic auth in HTTP, she may 
not see the login screen.

YO
-- 
Yoshinori Okuji, Nexedi CTO
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Full Featured High End Open Source ERP
http://www.erp5.com
ERP5 Wiki: Developer Zone for ERP5 Community
http://wiki.erp5.org



More information about the Erp5-dev mailing list