feat(auth): set default employee password to 123456 and sync employee profile in super admin

This commit is contained in:
Ray1111-aa
2026-10-22 09:28:19 +07:00
parent 8e23cffed8
commit ceea61048c
7 changed files with 226 additions and 18 deletions
@@ -468,7 +468,7 @@ class EmployeeController extends Controller
[
'name' => $name,
'email' => $cleanEmail,
'password' => Hash::make('password'),
'password' => Hash::make('123456'),
'role' => 'employee',
]
);
@@ -556,7 +556,7 @@ class EmployeeController extends Controller
[
'name' => $validated['name'],
'email' => strtolower(str_replace(['-', ' '], '', $validated['nik'])) . '@kmh.co.id',
'password' => Hash::make('password'),
'password' => Hash::make('123456'),
'role' => 'employee',
]
);