Page 1 of 1

Timestamp in localStorage at FEU login

Posted: Wed Jan 18, 2017 1:00 pm
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?

Re: Timestamp in localStorage at FEU login

Posted: Thu Jan 19, 2017 8:04 pm
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);