Difference between User_ loginDate and lastLoginDate

Issue

  • Both User_.loginDate and User_.lastLoginDate seem like similar fields, but they are slightly different.

Environment

  • Liferay DXP

Resolution

  • Last login date is configurable through the following property:
 #
# Set this to true to record last login information for a user.
#
# Env: LIFERAY_USERS_PERIOD_UPDATE_PERIOD_LAST_PERIOD_LOGIN
#
users.update.last.login=true

 

  • What both fields stand for:
    • loginDate: Saves current last login date information.
    • lastLoginDate: If it's user first login saves loginDate. If user has log in more than once, saves next to last loginDate (previous to current one).

 

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助