File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ var AuthenticationOptionCollection = require('./models/authentication-option-col
77
88var InputView = require ( './input-view' ) ;
99var inputTemplate = require ( './input-default.jade' ) ;
10+ var _ = require ( 'lodash' ) ;
1011
1112var NONE = {
1213 _id : 'NONE' ,
@@ -88,7 +89,7 @@ var X509 = {
8889 title : 'X.509' ,
8990 // @todo (imlucas) Fix `app.isFeatureEnabled` is not a function.
9091 // enabled: app.isFeatureEnabled('Connect with X.509'),
91- enabled : true ,
92+ enabled : false ,
9293 fields : [
9394 new InputView ( {
9495 template : inputTemplate ,
@@ -125,10 +126,12 @@ var LDAP = {
125126 ]
126127} ;
127128
128- module . exports = new AuthenticationOptionCollection ( [
129+ var allAuthModes = [
129130 NONE ,
130131 MONGODB ,
131132 KERBEROS ,
132133 LDAP ,
133134 X509
134- ] ) ;
135+ ] ;
136+
137+ module . exports = new AuthenticationOptionCollection ( _ . filter ( allAuthModes , 'enabled' ) ) ;
You can’t perform that action at this time.
0 commit comments