mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 00:03:09 +01:00
Remove unused seeders & Fix phpdocs
This commit is contained in:
parent
997f13add9
commit
b5f8322ea3
@ -11,7 +11,7 @@ class WebauthnTwoFAuthUserProvider extends WebAuthnUserProvider
|
||||
/**
|
||||
* Validate a user against the given credentials.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Auth\Authenticatable|\App\Models\WebAuthnAuthenticatable|\App\Models\User $user
|
||||
* @param \App\Models\User $user
|
||||
* @param array $credentials
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Seed the application's database.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$this->call([
|
||||
UsersTableSeeder::class,
|
||||
TwoFAccountsTableSeeder::class
|
||||
]);
|
||||
}
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\TwoFAccount;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class TwoFAccountsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$faker = \Faker\Factory::create();
|
||||
|
||||
TwoFAccount::create([
|
||||
'otp_type' => 'totp',
|
||||
'account' => $faker->safeEmail,
|
||||
'service' => $faker->unique()->domainName,
|
||||
'secret' => 'A4GRFHZVRBGY7UIW',
|
||||
'algorithm' => 'sha1',
|
||||
'digits' => 6,
|
||||
'period' => 30,
|
||||
'icon' => 'https://fakeimg.pl/64x64/',
|
||||
]);
|
||||
TwoFAccount::create([
|
||||
'otp_type' => 'totp',
|
||||
'account' => $faker->safeEmail,
|
||||
'service' => $faker->unique()->domainName,
|
||||
'secret' => 'A4GRFHZVRBGY7UIW',
|
||||
'algorithm' => 'sha1',
|
||||
'digits' => 6,
|
||||
'period' => 30,
|
||||
'icon' => 'https://fakeimg.pl/64x64/',
|
||||
]);
|
||||
TwoFAccount::create([
|
||||
'otp_type' => 'totp',
|
||||
'account' => $faker->safeEmail,
|
||||
'service' => $faker->unique()->domainName,
|
||||
'secret' => 'A4GRFHZVRBGY7UIW',
|
||||
'algorithm' => 'sha1',
|
||||
'digits' => 6,
|
||||
'period' => 30,
|
||||
'icon' => 'https://fakeimg.pl/64x64/',
|
||||
]);
|
||||
TwoFAccount::create([
|
||||
'otp_type' => 'totp',
|
||||
'account' => $faker->safeEmail,
|
||||
'service' => $faker->unique()->domainName,
|
||||
'secret' => 'A4GRFHZVRBGY7UIW',
|
||||
'algorithm' => 'sha1',
|
||||
'digits' => 6,
|
||||
'period' => 30,
|
||||
'icon' => 'https://fakeimg.pl/64x64/',
|
||||
]);
|
||||
TwoFAccount::create([
|
||||
'otp_type' => 'totp',
|
||||
'account' => $faker->safeEmail,
|
||||
'service' => $faker->unique()->domainName,
|
||||
'secret' => 'A4GRFHZVRBGY7UIW',
|
||||
'algorithm' => 'sha1',
|
||||
'digits' => 6,
|
||||
'period' => 30,
|
||||
'icon' => 'https://fakeimg.pl/64x64/',
|
||||
]);
|
||||
}
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class UsersTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
User::create([
|
||||
'name' => 'admin',
|
||||
'email' => 'admin@example.org',
|
||||
'password' => bcrypt('password'),
|
||||
'is_admin' => 1,
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user