function UserInterface::checkExistingPassword

Same name in other branches
  1. 9 core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::checkExistingPassword()
  2. 8.9.x core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::checkExistingPassword()
  3. 11.x core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::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.

See also

UserInterface::setExistingPassword()

1 method overrides UserInterface::checkExistingPassword()
User::checkExistingPassword in core/modules/user/src/Entity/User.php
Checks the existing password if set.

File

core/modules/user/src/UserInterface.php, line 229

Class

UserInterface
Provides an interface defining a user entity.

Namespace

Drupal\user

Code

public function checkExistingPassword(UserInterface $account_unchanged);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.