You are here

public function CasUserManager::removeCasUsernameForAccount in CAS 2.x

Same name and namespace in other branches
  1. 8 src/Service/CasUserManager.php \Drupal\cas\Service\CasUserManager::removeCasUsernameForAccount()

Remove the CAS username association with the provided user.

Parameters

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

File

src/Service/CasUserManager.php, line 307

Class

CasUserManager
Provides the 'cas.user_manager' service default implementation.

Namespace

Drupal\cas\Service

Code

public function removeCasUsernameForAccount(UserInterface $account) {
  $this->authmap
    ->delete($account
    ->id(), $this->provider);
}