XF 2.1 Is there anyway to know user's last login date?

sajal

Active member
Is there anyway to know user's last login date? I have just looked into the db, and I can see that there's this "last_activity" field in the xf_user table. But, I want to just know last login date of users, even if users didn't perform any activity after login.

Any help would be greatly appreciated!
 
@jeb35 I just found out that, the card you pointed out displays the last activity actually, but not the last seen.

Snippet from the template:

<dt>{{ phrase('last_seen') }}</dt>
<dd dir="auto">
<xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" />
</xf:contentcheck>
</dd>
 
Top Bottom