LT-160: Create user accounts and require login for access by using active-entry package

This commit is contained in:
Aysel Afsar committed 2016-01-27 08:24:36 -05:00
1 parent d2ab42e11c
commit 3394b9ed64
5 files changed
+71 -29

No files matched your search

+12 -2
View File
@@ -28,11 +28,21 @@ var routerOptions = {
};
Router.route('/', function() {
this.render('worklist', routerOptions);
// Check user is logged in
if (!Meteor.user() || !Meteor.userId()) {
this.render('entrySignIn', routerOptions);
} else{
this.render('worklist', routerOptions);
}
});
Router.route('/worklist', function() {
this.render('worklist', routerOptions);
// Check user is logged in
if (!Meteor.user() || !Meteor.userId()) {
this.render('entrySignIn', routerOptions);
} else{
this.render('worklist', routerOptions);
}
});
Router.route('/viewer/:_id', {