diff --git a/framework/core/src/Core/Users/User.php b/framework/core/src/Core/Users/User.php index b2b20f3f0..639a06550 100755 --- a/framework/core/src/Core/Users/User.php +++ b/framework/core/src/Core/Users/User.php @@ -55,7 +55,13 @@ class User extends Model * @var array */ protected $rules = [ - 'username' => 'required|alpha_dash|unique', + 'username' => [ + 'required', + 'alpha_dash', + 'unique', + 'min:3', + 'max:30', + ], 'email' => 'required|email|unique', 'password' => 'required', 'join_time' => 'date',