You are here

public function DrupalUserProcessor::drupalUserLogsIn in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 ldap_user/src/Processor/DrupalUserProcessor.php \Drupal\ldap_user\Processor\DrupalUserProcessor::drupalUserLogsIn()

Handle Drupal user login.

Parameters

\Drupal\user\UserInterface $account: The Drupal user.

File

ldap_user/src/Processor/DrupalUserProcessor.php, line 569

Class

DrupalUserProcessor
Handles processing of a user from LDAP to Drupal.

Namespace

Drupal\ldap_user\Processor

Code

public function drupalUserLogsIn(UserInterface $account) {
  $this->account = $account;
  if (ExternalAuthenticationHelper::excludeUser($this->account)) {
    return;
  }
  $this
    ->loginDrupalAccountProvisioning();
  $this
    ->loginLdapEntryProvisioning();
}