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