Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0-BETA11
Description: 

Summary:

If you are implementing a class that implements PasswordInterface you will need to make a minor modification to the PasswordInterface::check() method and a minor change and rename of the PasswordInterface::userNeedsNewHash() method.

Before

use \Drupal\Core\Password\PasswordInterface;
use Drupal\user\UserInterface;

class MyPasswordHasher implements PasswordInterface {

  public function check($password, UserInterface $account) {
    password_compare($password, $user->getPassword());
  }

  public function userNeedsNewHash(UserInterface $account) {
    check_hash($user->getPassword());
  }

}

After

use \Drupal\Core\Password\PasswordInterface;

class MyPasswordHasher implements PasswordInterface {

  public function check($password, $hash) {
    password_compare($password, $hash);
  }

  public function needsRehash($hash) {
    check_hash($hash);
  }

}
Impacts: 
Module developers