diff --git a/framework/core/src/Core/Models/User.php b/framework/core/src/Core/Models/User.php index e29ea5fb5..131530b83 100755 --- a/framework/core/src/Core/Models/User.php +++ b/framework/core/src/Core/Models/User.php @@ -32,7 +32,7 @@ class User extends Model * @var array */ public static $rules = [ - 'username' => 'required|unique', + 'username' => 'required|alpha_dash|unique', 'email' => 'required|email|unique', 'password' => 'required', 'join_time' => 'date',