You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user.php 454B

8 jaren geleden
1234567891011121314151617
  1. <?php
  2. /**
  3. * @var $faker \Faker\Generator
  4. * @var $index integer
  5. */
  6. $security = Yii::$app->getSecurity();
  7. return [
  8. 'username' => $faker->userName,
  9. 'email' => $faker->email,
  10. 'auth_key' => $security->generateRandomString(),
  11. 'password_hash' => $security->generatePasswordHash('password_' . $index),
  12. 'password_reset_token' => $security->generateRandomString() . '_' . time(),
  13. 'created_at' => time(),
  14. 'updated_at' => time(),
  15. ];