LT-103: Authenticate via LDAP
This commit is contained in:
1 parent
beaa0d4e65
commit
3c60a6dda1
11 files changed
+559
-34
No files matched your search
@@ -36,7 +36,7 @@ var routerOptions = {
|
||||
Router.route('/', function() {
|
||||
// Check user is logged in
|
||||
if(Meteor.user() && Meteor.userId()) {
|
||||
if (!Meteor.user().emails[0].verified && verifyEmail) {
|
||||
if (verifyEmail && Meteor.user().emails && !Meteor.user().emails[0].verified) {
|
||||
this.render('emailVerification', routerOptions);
|
||||
} else {
|
||||
this.render('worklist', routerOptions);
|
||||
@@ -50,7 +50,7 @@ Router.route('/', function() {
|
||||
Router.route('/worklist', function() {
|
||||
// Check user is logged in
|
||||
if(Meteor.user() && Meteor.userId()) {
|
||||
if (!Meteor.user().emails[0].verified && verifyEmail) {
|
||||
if (verifyEmail && Meteor.user().emails && !Meteor.user().emails[0].verified) {
|
||||
this.render('emailVerification', routerOptions);
|
||||
} else {
|
||||
this.render('worklist', routerOptions);
|
||||
|
||||
Reference in new issue
Block a user