From 99f72731c44218ef63ffa2302ce9369fe67d8c71 Mon Sep 17 00:00:00 2001 From: Martii Date: Mon, 25 Jun 2018 23:21:35 -0600 Subject: [PATCH] Capture since date * `getTimeStamp` isn't available to my knowledge on any identifiers since they are Objects of the real thing. NOTE: * Needed for a change that is being worked on Post #1203 #1446 #1447 ... related to #604 --- controllers/auth.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/auth.js b/controllers/auth.js index 0173fb029..d53a154b3 100644 --- a/controllers/auth.js +++ b/controllers/auth.js @@ -291,10 +291,11 @@ exports.callback = function (aReq, aRes, aNext) { // Store the user info in the session aReq.session.user = aUser; - // Store the agent info in the session passport + // Store the info in the session passport // Currently we do not care to save this info in User if (aReq.session.passport) { aReq.session.passport.userAgent = aReq.session.useragent; + aReq.session.passport.since = new Date(); } // Save the last date a user sucessfully logged in