[Yanel-dev] User history default implementation
Michael Wechner
michael.wechner at wyona.com
Wed May 6 08:30:54 EDT 2015
Hi Balz
Sounds good :-) how do you currently save the lastLoginDate?
In case you want to re-use code of the most recent Yanel version, then
you can access the user history by calling
org.wyona.security.core.api.User.getHistory()
or please let me know in case you need more details or also see
https://github.com/wyona/security/blob/master/src/impl/java/org/wyona/security/impl/yarep/YarepUser.java
Thanks
Michael
Am 06.05.15 um 12:32 schrieb basZero:
> just 2 cents from our project:
> we have extended the user profile by two login dates:
> - loginDate (the last)
> - lastLoginDate (the login date before last login)
>
> loginDate gets updated as soon as a user logs in. In order to preserve
> the "last login date", before updating loginDate, we do lastLoginDate
> = loginDate, and then loginDate = now.
>
> This way you have access to the last login date (lastLoginDate) in the
> whole session or until the user logs in again... This way you can show
> personalised content based on the last login date even after a few
> clicks within the same session.
>
> Cheers, Balz
>
> On Wed, May 6, 2015 at 11:13 AM, Michael Wechner
> <michael.wechner at wyona.com <mailto:michael.wechner at wyona.com>> wrote:
>
> Hi
>
> I have done a default implementation of the user history, e.g.
>
> https://127.0.0.1:8443/yanel/my-realm/yanel/users/1412880733771.html
>
> which means successful and failed login attempts are being logged.
>
> This also allows to determine when a user did login last time,
> which for
> example
> can help to promote recent changes since last login.
>
> Enjoy
>
> Michael
> --
> Yanel-development mailing list Yanel-development at wyona.com
> <mailto:Yanel-development at wyona.com>
> http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mx2.wyona.com/pipermail/yanel-development/attachments/20150506/96a5edb7/attachment.html>
More information about the Yanel-development
mailing list