Skip to content

Commit

Permalink
Fix Guest Users
Browse files Browse the repository at this point in the history
remove unique:users onRegister to fix User guest accounts
See: wintercms#28
  • Loading branch information
AIC-BV authored Feb 3, 2023
1 parent 409ba04 commit cc0d12d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit cc0d12d

Please sign in to comment.