/** * Returns some users to populate database. * * @return array */ private function getUsersToPopulate() { return array(array('nameSurname' => 'John Doe', 'email' => '*****@*****.**', 'password' => RegistrationService::hashPassword('TestPass!'), 'language' => 'en_US', 'registrationDate' => new \DateTime('2014-12-30')), array('nameSurname' => 'Amy Winehouse', 'email' => '*****@*****.**', 'password' => RegistrationService::hashPassword('OtherPass!'), 'language' => 'en_US', 'registrationDate' => new \DateTime('2015-04-02'))); }
/** * {@inheritdoc} */ protected function checkPassword($user, $password) { return \Core\Service\RegistrationService::verifyRawPassword($user['password'], $password); }