Compare commits
4 Commits
fix/ldap-a
...
a4a31c97e3
| Author | SHA1 | Date | |
|---|---|---|---|
| a4a31c97e3 | |||
| 2ef5014919 | |||
| e07984fa97 | |||
| dd3c623bfc |
@@ -16,28 +16,28 @@ class DatabaseSeeder extends Seeder
|
||||
// Create roles
|
||||
$this->call(RoleSeeder::class);
|
||||
|
||||
// Create admin user — email matches LDAP mail attribute
|
||||
// Create admin user
|
||||
$admin = User::factory()->create([
|
||||
'name' => 'Administrator',
|
||||
'email' => 'admin@travel.local',
|
||||
'email' => 'admin@example.com',
|
||||
'username' => 'admin',
|
||||
'password' => Hash::make('password'),
|
||||
]);
|
||||
$admin->assignRole('administrator');
|
||||
|
||||
// Create a travel approver — email matches LDAP mail attribute
|
||||
// Create a travel approver
|
||||
$approver = User::factory()->create([
|
||||
'name' => 'Travel Approver',
|
||||
'email' => 'approver@travel.local',
|
||||
'email' => 'approver@example.com',
|
||||
'username' => 'approver',
|
||||
'password' => Hash::make('password'),
|
||||
]);
|
||||
$approver->assignRole('travel_approver');
|
||||
|
||||
// Create a staff user — email matches LDAP mail attribute
|
||||
// Create a staff user
|
||||
$staff = User::factory()->create([
|
||||
'name' => 'Staff Member',
|
||||
'email' => 'staff@travel.local',
|
||||
'email' => 'staff@example.com',
|
||||
'username' => 'staff',
|
||||
'password' => Hash::make('password'),
|
||||
]);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"
|
||||
x-data="{ theme: localStorage.getItem('theme') || 'light' }"
|
||||
x-data="{ theme: localStorage.getItem('theme') || 'dark' }"
|
||||
x-init="$watch('theme', val => { document.documentElement.setAttribute('data-bs-theme', val); localStorage.setItem('theme', val); }); document.documentElement.setAttribute('data-bs-theme', theme);"
|
||||
:data-bs-theme="theme"
|
||||
>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"
|
||||
x-data="{ theme: localStorage.getItem('theme') || 'light' }"
|
||||
x-data="{ theme: localStorage.getItem('theme') || 'dark' }"
|
||||
x-init="document.documentElement.setAttribute('data-bs-theme', theme);"
|
||||
:data-bs-theme="theme"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user