servermgrv2 init...

This commit is contained in:
최준흠 2023-07-19 13:31:57 +09:00
parent c563e7d0c0
commit f2694f50e1

View File

@ -11,7 +11,7 @@ class UserModel extends CommonModel
protected $useAutoIncrement = false;
protected $allowedFields = ['uid', 'id', 'email', 'passwd', 'name', 'role', 'status', 'updated_at'];
protected $validationRules = [
'uid' => 'if_exist|regex_match[/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/]',
'uid' => 'required|regex_match[/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/]',
'id' => 'required|min_length[4]|max_length[20]',
'passwd' => 'required|trim|min_length[4]|max_length[150]',
'name' => 'required|min_length[2]|max_length[20]',