public function TokenAuthUser::checkExistingPassword in Simple OAuth (OAuth2) & OpenID Connect 8.3
Same name and namespace in other branches
- 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()
- 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::checkExistingPassword()
- 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 839
Class
- TokenAuthUser
- The decorated user class with token information.
Namespace
Drupal\simple_oauth\AuthenticationCode
public function checkExistingPassword(UserInterface $account_unchanged) {
return $this->subject
->checkExistingPassword($account_unchanged);
}