LT-61: Record actions that create, modify, delete, associate timepoints, remove associations and login

- Show Last Login Date popup after login successful
(WIP)
This commit is contained in:
Aysel Afsar committed 2016-04-05 12:16:50 -04:00
1 parent e277c4b484
commit 83e067b701
12 files changed
+187 -52

No files matched your search

+6 -1
View File
@@ -123,7 +123,12 @@ Meteor.methods({
},
updateLastLoginDate: function () {
Meteor.users.update({_id: Meteor.userId()}, {$set: {lastLoginDate: new Date()}});
var user = Meteor.users.findOne(Meteor.userId());
if (!user) {
return;
}
// Update priorLoginDate and lastLoginDate
Meteor.users.update({_id: Meteor.userId()}, {$set: {priorLoginDate: user.lastLoginDate, lastLoginDate: new Date()}});
},
isAccountInactive: function (inactivityParameters) {