Remove unused seeders & Fix phpdocs

This commit is contained in:
Bubka 2023-03-17 17:17:04 +01:00
parent 997f13add9
commit b5f8322ea3
4 changed files with 1 additions and 116 deletions

View File

@ -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
*/

View File

@ -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
]);
}
}

View File

@ -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/',
]);
}
}

View File

@ -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,
]);
}
}