Update AdminSeeder to use Eliza's credentials from v1.0

This commit is contained in:
TheMaddax 2025-12-17 20:52:04 -07:00
parent 9772e4cb83
commit 5d9997d3a6

View file

@ -12,14 +12,15 @@ class AdminSeeder extends Seeder
*/ */
public function run(): void public function run(): void
{ {
// Create default admin user // Create Eliza admin user with password from v1.0
// Password hash copied from v1 database (bcrypt)
AdminUser::create([ AdminUser::create([
'username' => 'admin', 'username' => 'eliza',
'password' => 'password', // Will be auto-hashed by AdminUser model 'password' => '$2a$12$gyoJoEXpig8W.GhuJG5KBeXg2AK71iyj5bX6HW24TLema5FH7ByxK', // Pre-hashed from v1
]); ]);
$this->command->info('Admin user created successfully!'); $this->command->info('Admin user created successfully!');
$this->command->info('Username: admin'); $this->command->info('Username: eliza');
$this->command->info('Password: password'); $this->command->info('Password: (same as v1.0)');
} }
} }