Révision 5136ce55
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/ldap/ldap_authentication/ldap_authentication.module | ||
---|---|---|
220 | 220 |
*/ |
221 | 221 |
function ldap_authentication_init() { |
222 | 222 |
$auth_conf = ldap_authentication_get_valid_conf(); |
223 |
if ($auth_conf->templateUsagePromptUser) { |
|
223 |
if ($auth_conf && $auth_conf->templateUsagePromptUser) {
|
|
224 | 224 |
ldap_authentication_check_for_email_template(); |
225 | 225 |
} |
226 | 226 |
} |
... | ... | |
342 | 342 |
|
343 | 343 |
if ($user->uid == 0) { |
344 | 344 |
// hide reset password for anonymous users if ldap only authentication and password updates are disabled, otherwise show |
345 |
if ($auth_conf->authenticationMode != LDAP_AUTHENTICATION_EXCLUSIVE) {
|
|
345 |
if ($auth_conf->authenticationMode == LDAP_AUTHENTICATION_EXCLUSIVE) {
|
|
346 | 346 |
if ($auth_conf->passwordOption == LDAP_AUTHENTICATION_PASSWORD_FIELD_ALLOW) { |
347 | 347 |
return TRUE; |
348 | 348 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules