You are here

public function TokenAuthUser::checkExistingPassword in Simple OAuth (OAuth2) & OpenID Connect 5.x

Same name and namespace in other branches
  1. 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()
  2. 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()
  3. 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()
  4. 8.3 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 841

Class

TokenAuthUser
The decorated user class with token information.

Namespace

Drupal\simple_oauth\Authentication

Code

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