Skip to content

Commit 4a52904

Browse files
authored
Capture since date (#1450)
* `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 Auto-merge
1 parent efe3517 commit 4a52904

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controllers/auth.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,11 @@ exports.callback = function (aReq, aRes, aNext) {
291291
// Store the user info in the session
292292
aReq.session.user = aUser;
293293

294-
// Store the agent info in the session passport
294+
// Store the info in the session passport
295295
// Currently we do not care to save this info in User
296296
if (aReq.session.passport) {
297297
aReq.session.passport.userAgent = aReq.session.useragent;
298+
aReq.session.passport.since = new Date();
298299
}
299300

300301
// Save the last date a user sucessfully logged in

0 commit comments

Comments
 (0)