Fix: disable hover event of conformanceCheckFeedback if validationErrors is empty

This commit is contained in:
Aysel Afsar committed 2016-02-16 12:29:52 -05:00
1 parent 013c003128
commit 2c65b8c9c6
3 files changed
+26 -9

No files matched your search

-4
View File
@@ -132,20 +132,16 @@ Meteor.methods({
// Check if the user actually exists, and if not, stop here
var currentUser = Meteor.users.findOne({"emails.address": emailAddress});
console.log(currentUser);
if (!currentUser) {
return;
}
console.log(currentUser);
var lastLoginDate = currentUser.lastLoginDate;
if (!lastLoginDate) {
return false;
}
console.log(lastLoginDate);
lastLoginDate.setDate(lastLoginDate.getDate() + inactivityPeriodDays);
console.log(lastLoginDate);
if (lastLoginDate <= new Date()) {
return true;