Commit fd10d93e authored by 刘小敏's avatar 刘小敏

用户名首字母可以数字

parent 0ee74448
...@@ -11,7 +11,7 @@ class User extends Validate ...@@ -11,7 +11,7 @@ class User extends Validate
{ {
protected $regex = [ protected $regex = [
'password' => '/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]+\S{5,12}$/', 'password' => '/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]+\S{5,12}$/',
'notPureNumber' => '^[a-zA-Z][a-zA-Z0-9_]{4,15}$', 'notPureNumber' => '^[a-zA-Z0-9][a-zA-Z0-9_]{4,15}$',
'mobile' => '/^1[3456789]\d{9}$/', 'mobile' => '/^1[3456789]\d{9}$/',
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment