Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-43969

Last Login Date is not updated until user signs back in again

    Details

      Description

      Description:
      By default, with the users.update.last.login=true property set in portal.properties, the Portal logs timestamps of the user's last login. This information is stored in the user_ table in the lastlogindate column. The current behavior of the Portal seems to be that the lastlogindate is not updated until the user's next sign in.

      Steps to reproduce:
      1. Create user a@a.a
      2. Sign in with user and query database: select emailaddress,logindate,lastlogindate from user_;

      | a@a.a               | 2014-01-31 20:18:51 | 2014-01-31 20:18:51 |

      3. Sign off

      | a@a.a               | 2014-01-31 20:18:51 | 2014-01-31 20:18:51 |

      Noticed no change.
      4. Sign back in

      | a@a.a               | 2014-01-31 20:24:06 | 2014-01-31 20:18:51 |

      The logindate and lastlogindate is updated.
      5. Sign out

      | a@a.a               | 2014-01-31 20:24:06 | 2014-01-31 20:18:51 |

      No changes.
      6. Sign back in

      | a@a.a               | 2014-01-31 20:24:42 | 2014-01-31 20:24:06 |

      7. Sign out

      | a@a.a               | 2014-01-31 20:24:42 | 2014-01-31 20:24:06 |

      Expected Result:
      In each instance when a user signs out, the Portal should record their lastlogindate.

      Actual Results:
      When a user signs out, the Portal does not record the lastlogindate, but instead updates it upon the next sign in.

      Reproduced:
      In 6.1 EE GA3 (6.1.30)

      Branch:
      Issue reproduced in commit 2584646c4f582f185576dd0e2e5c43f5014198dc

      Master:
      Issue is reproduced in commit 64fc9f2bd13ef744c37d42e907229a5320f86d2d

        Attachments

          Activity

            People

            • Assignee:
              preston.crary Preston Crary
              Reporter:
              brian.suh Brian Suh
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 27 weeks, 3 days ago

                Packages

                Version Package
                6.1.30 EE GA3
                6.1.X EE
                7.0.0 M3