private function savePasswordResetInfo($login, $newPassword, $keySuffix)
    {
        $optionName = $this->getPasswordResetInfoOptionName($login);
        $optionData = [
            'hash' => $this->passwordHelper->hash(UsersManager::getPasswordHash($newPassword)),
            'keySuffix' => $keySuffix,
        ];
        $optionData = json_encode($optionData);

        Option::set($optionName, $optionData);
    }
private function savePasswordResetInfo($login, $newPassword, $keySuffix)
    {
        $optionName = $this->getPasswordResetInfoOptionName($login);
        $optionData = [
            'hash' => $this->passwordHelper->hash(UsersManager::getPasswordHash($newPassword)),
            'keySuffix' => $keySuffix,
        ];
        $optionData = json_encode($optionData);

        Option::set($optionName, $optionData);
    }
private function savePasswordResetInfo ( $ login , $ newPassword , $ keySuffix ) { $ optionName = $ this -> getPasswordResetInfoOptionName ( $ login ) ; $ optionData = [ 'hash' => $ this -> passwordHelper -> hash ( UsersManager :: getPasswordHash ( $ newPassword ) ) , 'keySuffix' => $ keySuffix , ] ; $ optionData = json_encode ( $ optionData ) ; Option :: set ( $ optionName , $ optionData ) ; }
Stores password reset info for a specific login.

@param string $login The user login for whom a password change was requested.
@param string $newPassword The new password to set.
@param string $keySuffix The suffix used in generating a token.
Stores password reset info for a specific login .