File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11const ActiveDirectoryStrategy = require ( 'passport-activedirectory' ) ;
22const ldaphelper = require ( './ldaphelper' ) ;
33
4- const type = " activedirectory" ;
4+ const type = ' activedirectory' ;
55
66const configure = ( passport ) => {
77 const db = require ( '../../db' ) ;
88
99 // We can refactor this by normalizing auth strategy config and pass it directly into the configure() function,
1010 // ideally when we convert this to TS.
1111 const authMethods = require ( '../../config' ) . getAuthMethods ( ) ;
12- const config = authMethods . find ( ( method ) => method . type . toLowerCase ( ) === "activeDirectory" ) ;
12+ const config = authMethods . find ( ( method ) => method . type . toLowerCase ( ) === type ) ;
1313 const adConfig = config . adConfig ;
1414
1515 const { userGroup, adminGroup, domain } = config ;
@@ -59,7 +59,7 @@ const configure = (passport) => {
5959 console . log ( `Error authenticating AD user: ${ err . message } ` ) ;
6060 return done ( err , null ) ;
6161 }
62- }
62+ } ,
6363 ) ,
6464 ) ;
6565
You can’t perform that action at this time.
0 commit comments