servermgrv2 init...
This commit is contained in:
parent
c563e7d0c0
commit
f2694f50e1
@ -11,7 +11,7 @@ class UserModel extends CommonModel
|
|||||||
protected $useAutoIncrement = false;
|
protected $useAutoIncrement = false;
|
||||||
protected $allowedFields = ['uid', 'id', 'email', 'passwd', 'name', 'role', 'status', 'updated_at'];
|
protected $allowedFields = ['uid', 'id', 'email', 'passwd', 'name', 'role', 'status', 'updated_at'];
|
||||||
protected $validationRules = [
|
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]',
|
'id' => 'required|min_length[4]|max_length[20]',
|
||||||
'passwd' => 'required|trim|min_length[4]|max_length[150]',
|
'passwd' => 'required|trim|min_length[4]|max_length[150]',
|
||||||
'name' => 'required|min_length[2]|max_length[20]',
|
'name' => 'required|min_length[2]|max_length[20]',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user