main
ilhamwara 2025-06-13 09:27:37 +07:00
parent 5e1e7251bb
commit 62de7b7477
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class UserController extends Controller
'name' => 'required|max:50', 'name' => 'required|max:50',
'group' => 'required', 'group' => 'required',
'username' => 'required|unique:users,username,'.$keyId, 'username' => 'required|unique:users,username,'.$keyId,
'password' => 'nullable|min:8|max:15|regex:/[a-z]/|regex:/[A-Z]/|regex:/[0-9]/|regex:/[@$!%*#?&]/', //min 8 char, maks 15 char, min 1 symbol, min 1 uppercase, min 1 lowercase, 1 number 'password' => 'nullable|min:8|regex:/[a-z]/|regex:/[A-Z]/|regex:/[0-9]/|regex:/[@$!%*#?&]/', //min 8 char, maks 15 char, min 1 symbol, min 1 uppercase, min 1 lowercase, 1 number
],[ ],[
'password.min' => 'password Minimal 8 Karakter', 'password.min' => 'password Minimal 8 Karakter',
'password.max' => 'password Maksimal 15 Karakter', 'password.max' => 'password Maksimal 15 Karakter',
@ -118,7 +118,7 @@ class UserController extends Controller
'name' => 'required|max:50', 'name' => 'required|max:50',
'group' => 'required', 'group' => 'required',
'username' => 'required|unique:users,username', 'username' => 'required|unique:users,username',
'password' => 'required|min:8|max:15|regex:/[a-z]/|regex:/[A-Z]/|regex:/[0-9]/|regex:/[@$!%*#?&]/', //min 8 char, maks 15 char, min 1 symbol, min 1 uppercase, min 1 lowercase, 1 number 'password' => 'required|min:8|regex:/[a-z]/|regex:/[A-Z]/|regex:/[0-9]/|regex:/[@$!%*#?&]/', //min 8 char, maks 15 char, min 1 symbol, min 1 uppercase, min 1 lowercase, 1 number
],[ ],[
'password.min' => 'password Minimal 8 Karakter', 'password.min' => 'password Minimal 8 Karakter',
'password.max' => 'password Maksimal 15 Karakter', 'password.max' => 'password Maksimal 15 Karakter',