mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-19 19:28:08 +02:00
Force data consistency of TwoFAccount db factory
This commit is contained in:
parent
648c8f8006
commit
d6e161dbaa
@ -18,10 +18,14 @@ use Faker\Generator as Faker;
|
|||||||
|
|
||||||
|
|
||||||
$factory->define(TwoFAccount::class, function (Faker $faker) {
|
$factory->define(TwoFAccount::class, function (Faker $faker) {
|
||||||
|
|
||||||
|
$service = $faker->unique()->domainName;
|
||||||
|
$account = $faker->safeEmail;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'service' => $faker->unique()->domainName,
|
'service' => $service,
|
||||||
'account' => $faker->safeEmail,
|
'account' => $account,
|
||||||
'uri' => 'otpauth://totp/' . $faker->email . '?secret=' . $faker->regexify('[A-Z0-9]{16}') . '&issuer=test',
|
'uri' => 'otpauth://totp/' . $service . ':' . $account . '?secret=' . $faker->regexify('[A-Z0-9]{16}') . '&issuer=' . $service,
|
||||||
'icon' => '',
|
'icon' => '',
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user