You are here

public function MigratePassword::getCountLog2 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/MigratePassword.php \Drupal\user\MigratePassword::getCountLog2()

Implements the PhpassHashedPassword::getCountLog2() method.

@todo: Revisit this whole alternate password service: https://www.drupal.org/node/2540594.

File

core/modules/user/src/MigratePassword.php, line 90
Contains \Drupal\user\MigratePassword.

Class

MigratePassword
Replaces the original 'password' service in order to prefix the MD5 re-hashed passwords with the 'U' flag. The new salted hash is recreated on first login similarly to the D6->D7 upgrade path.

Namespace

Drupal\user

Code

public function getCountLog2($setting) {
  return $this->originalPassword
    ->getCountLog2($setting);
}