Add default role when user is created by an admin

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2026-02-11 14:51:28 +01:00
1 parent 5e232fd0af
commit c74690f68b
1 file changed
+1
+1
View File
@@ -79,6 +79,7 @@ class UserController extends Controller
"password" => Hash::make($password), "password" => Hash::make($password),
"lastname" => $request["lastname"], "lastname" => $request["lastname"],
"validate" => 1, "validate" => 1,
"role" => 3,
"phone" => $phone->formatInternational(), "phone" => $phone->formatInternational(),
]); ]);