public function TokenAuthUser::setExistingPassword 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::setExistingPassword()
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setExistingPassword()
- 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setExistingPassword()
- 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setExistingPassword()
Sets the existing plain text password.
Required for validation when changing the password, name or email fields.
Parameters
string $password: The existing plain text password of the user.
Return value
$this
Overrides UserInterface::setExistingPassword
File
- src/
Authentication/ TokenAuthUser.php, line 787
Class
- TokenAuthUser
- Class TokenAuthUser.
Namespace
Drupal\simple_oauth\AuthenticationCode
public function setExistingPassword($password) {
return $this->subject
->setExistingPassword($password);
}