Fix AdminSeeder to use correct bcrypt hash format

This commit is contained in:
TheMaddax 2025-12-17 21:53:00 -07:00
parent 047f81b73f
commit 7258b35dda

View file

@ -12,11 +12,11 @@ class AdminSeeder extends Seeder
*/
public function run(): void
{
// Create Eliza admin user with password from v1.0
// Insert directly to avoid double-hashing by the model mutator
// Create Eliza admin user
// Insert directly to avoid any model mutators
\DB::table('admin_users')->insert([
'username' => 'eliza',
'password' => '$2a$12$gyoJoEXpig8W.GhuJG5KBeXg2AK71iyj5bX6HW24TLema5FH7ByxK', // Pre-hashed from v1
'password' => '$2y$12$0ALddIeVIN8UN9.6Des9reVTdu4RpIRgHoQzowPp1wYwjK7.RafhK', // Password: AXEoZWk2AMAD0naw
'created_at' => now(),
'updated_at' => now(),
]);