LT-196: Verify user's email on signup

This commit is contained in:
Aysel Afsar committed 2016-02-28 12:58:05 -05:00
1 parent ee8fb5492c
commit 813c68881a
11 files changed
+110 -14

No files matched your search

@@ -10,5 +10,5 @@
width: 50px
// TODO: Fix theming in active-entry so we don't have to do this
.entryPage .wrapper-auth
.entryPage .wrapper-auth,.subtitle-auth
color: white !important
@@ -21,6 +21,19 @@ Template.lesionTrackerLayout.helpers({
showWorklistMenu: function() {
return Template.instance().showWorklistMenu.get();
},
currentUser: function() {
if (Meteor.user() && Meteor.userId()) {
if (Session.get("verifyEmail")) {
if (Meteor.user().emails[0].verified) {
return true;
}
return false;
}
return true;
}
return false;
}
});
@@ -155,8 +155,6 @@ function search() {
Session.set("searchResults", searchResults);
}
});
}
@@ -186,7 +184,7 @@ Template.worklistResult.onRendered(function() {
ranges: {
'Today': [moment(), moment()],
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
'Last 30 Days': [moment().subtract(29, 'days'), moment()]
}
});
});