Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
73859346a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/service/passport.js

+ 1 - 1
lib/service/passport.js

@@ -181,7 +181,7 @@ class PassportService {
 
     // parse serverUrl
     // see: https://regex101.com/r/0tuYBB/1
-    const match = serverUrl.match(/(ldaps?:\/\/[^\/]+)\/(.*)?/);
+    const match = serverUrl.match(/(ldaps?:\/\/[^/]+)\/(.*)?/);
     if (match == null || match.length < 1) {
       debug('LdapStrategy: serverUrl is invalid');
       return (req, callback) => { callback({ message: 'serverUrl is invalid'}) };