Timestamp in localStorage at FEU login

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Bigge

Timestamp in localStorage at FEU login

Post by Bigge »

I´m using cmsms 2.1.6 and Frontend Users 2.2.0.6 with "Builtin Authentication"

My problem:
I would like to set a timestamp in localStorage (with javascript) when a frontend user successfully logged in.
Can anyone help me to figure out if it is possible and where to put the code?
chandra

Re: Timestamp in localStorage at FEU login

Post by chandra »

Inside FEU you can define a page for redirecting users after successful login.

Define such a page (not shown in menu) and add this javascript to this page

Code: Select all

localStorage.setItem('logintime', +new Date);
Locked

Return to “Modules/Add-Ons”