<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Balz<br>
      <br>
      Sounds good :-) how do you currently save the lastLoginDate?<br>
      <br>
      In case you want to re-use code of the most recent Yanel version,
      then you can access the user history by calling<br>
      <br>
      org.wyona.security.core.api.User.getHistory()<br>
      <br>
      or please let me know in case you need more details or also see<br>
      <br>
<a class="moz-txt-link-freetext" href="https://github.com/wyona/security/blob/master/src/impl/java/org/wyona/security/impl/yarep/YarepUser.java">https://github.com/wyona/security/blob/master/src/impl/java/org/wyona/security/impl/yarep/YarepUser.java</a><br>
      <br>
      Thanks<br>
      <br>
      Michael<br>
      <br>
      Am 06.05.15 um 12:32 schrieb basZero:<br>
    </div>
    <blockquote
cite="mid:CAOXzDSHTbZtHi-E12CDJGJ158WH16NsLAZwrcF6GYtnF0RrNGw@mail.gmail.com"
      type="cite">
      <div dir="ltr">just 2 cents from our project:
        <div>we have extended the user profile by two login dates:</div>
        <div>- loginDate (the last)</div>
        <div>- lastLoginDate (the login date before last login)</div>
        <div><br>
        </div>
        <div>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.</div>
        <div><br>
        </div>
        <div>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. </div>
        <div><br>
        </div>
        <div>Cheers, Balz</div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Wed, May 6, 2015 at 11:13 AM,
            Michael Wechner <span dir="ltr"><<a
                moz-do-not-send="true"
                href="mailto:michael.wechner@wyona.com" target="_blank">michael.wechner@wyona.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
              <br>
              I have done a default implementation of the user history,
              e.g.<br>
              <br>
              <a moz-do-not-send="true"
href="https://127.0.0.1:8443/yanel/my-realm/yanel/users/1412880733771.html"
                target="_blank">https://127.0.0.1:8443/yanel/my-realm/yanel/users/1412880733771.html</a><br>
              <br>
              which means successful and failed login attempts are being
              logged.<br>
              <br>
              This also allows to determine when a user did login last
              time, which for<br>
              example<br>
              can help to promote recent changes since last login.<br>
              <br>
              Enjoy<br>
              <span class="HOEnZb"><font color="#888888"><br>
                  Michael<br>
                  --<br>
                  Yanel-development mailing list <a
                    moz-do-not-send="true"
                    href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a><br>
                  <a moz-do-not-send="true"
                    href="http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development"
                    target="_blank">http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development</a><br>
                </font></span></blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>