@@ 142-149 (lines=8) @@ | ||
139 | if (!is_null($faqremember) && 'rememberMe' === $faqremember) { |
|
140 | $user->enableRememberMe(); |
|
141 | } |
|
142 | if ($faqConfig->get('ldap.ldapSupport') && function_exists('ldap_connect')) { |
|
143 | try { |
|
144 | $authLdap = new Ldap($faqConfig); |
|
145 | $user->addAuth($authLdap, 'ldap'); |
|
146 | } catch (Exception $e) { |
|
147 | $error = $e->getMessage().'<br>'; |
|
148 | } |
|
149 | } |
|
150 | if ($faqConfig->get('security.ssoSupport')) { |
|
151 | $authSso = new Sso($faqConfig); |
|
152 | $user->addAuth($authSso, 'sso'); |
@@ 128-135 (lines=8) @@ | ||
125 | if (!is_null($faqremember) && 'rememberMe' === $faqremember) { |
|
126 | $user->enableRememberMe(); |
|
127 | } |
|
128 | if ($faqConfig->get('ldap.ldapSupport') && function_exists('ldap_connect')) { |
|
129 | try { |
|
130 | $authLdap = new AuthLdap($faqConfig); |
|
131 | $user->addAuth($authLdap, 'ldap'); |
|
132 | } catch (Exception $e) { |
|
133 | $error = $e->getMessage().'<br>'; |
|
134 | } |
|
135 | } |
|
136 | if ($faqConfig->get('security.ssoSupport')) { |
|
137 | $authSso = new AuthSso($faqConfig); |
|
138 | $user->addAuth($authSso, 'sso'); |