dyjh 6 years ago
parent
commit
7bf9c96cc2
1 changed files with 0 additions and 4 deletions
  1. 0 4
      app/Services/Admin/AdminUser.php

+ 0 - 4
app/Services/Admin/AdminUser.php

xqd
@@ -141,10 +141,6 @@ class AdminUser extends BaseProcess
             $data['password'] = bcrypt($data['password']);
         }
         if(isset($data['name']) && $data['name']) {
-            if(is_numeric($data['name'])) {
-                $this->setMsg("用户名不能是全数字!");
-                return false;
-            }
             if(strpos($data['name'],"@")) {
                 $this->setMsg("用户名不能有@符号!");
                 return false;