XF 2.2 Way to display a userflag or banner if email & password has been updated recently?

elsparkodiablo

Active member
We've been running into issues where users get their password compromised on another site, someone logs into their account and changes the contact information & password, and then scams other members out of hundreds if not thousands of dollars. Is there a way to use conditional statements or enable some sort of identifying banner on a user's public profile to show that "this user changed their email & password in the last [x] hours" so as to give folks warning?
 
There is indeed a way to check the last password change:

HTML:
<xf:if is="($xf.time - $xf.user.Profile.password_date) < 604800">
    // user changed password in the last 7 days
</xf:if>

Not sure about the email though.
 
Top Bottom