mirror of
https://github.com/elyby/accounts.git
synced 2024-10-30 15:33:21 +05:30
ecd92b8fda
Обновлена минимальная версия Yii2 Удалено немного хлама от Yii2 Advanced Исправлены некоторые тесты
21 lines
558 B
PHP
21 lines
558 B
PHP
<?php
|
|
/**
|
|
* @var $faker \Faker\Generator
|
|
* @var $index integer
|
|
*/
|
|
|
|
$security = Yii::$app->getSecurity();
|
|
|
|
return [
|
|
'uuid' => $faker->uuid,
|
|
'username' => $faker->userName,
|
|
'email' => $faker->email,
|
|
'password_hash' => $security->generatePasswordHash('password_' . $index),
|
|
'password_hash_strategy' => \common\models\Account::PASS_HASH_STRATEGY_YII2,
|
|
'lang' => 'en',
|
|
'auth_key' => $security->generateRandomString(),
|
|
'status' => \common\models\Account::STATUS_ACTIVE,
|
|
'created_at' => time(),
|
|
'updated_at' => time(),
|
|
];
|