You are here

public function TokenAuthUser::checkExistingPassword in Simple OAuth (OAuth2) & OpenID Connect 8

Same name and namespace in other branches
  1. 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()
  2. 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()
  3. 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()
  4. 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()

Checks the existing password if set.

Parameters

\Drupal\user\UserInterface $account_unchanged: The unchanged user entity to compare against.

Return value

bool TRUE if the correct existing password was provided.

Overrides UserInterface::checkExistingPassword

See also

UserInterface::setExistingPassword()

File

src/Authentication/TokenAuthUser.php, line 794

Class

TokenAuthUser
Class TokenAuthUser.

Namespace

Drupal\simple_oauth\Authentication

Code

public function checkExistingPassword(UserInterface $account_unchanged) {
  return $this->subject
    ->checkExistingPassword($account_unchanged);
}