diff --git a/components/Account.php b/components/Account.php index fb22eca..50038cd 100644 --- a/components/Account.php +++ b/components/Account.php @@ -287,6 +287,7 @@ public function onRegister() } $rules = (new UserModel)->rules; + $rules['email'] = 'required|between:6,255|email'; if ($this->loginAttribute() !== UserSettings::LOGIN_USERNAME) { unset($rules['username']);