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