Skip to content

Commit

Permalink
Removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Towers committed Nov 19, 2019
1 parent 7307e99 commit 32103e1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions components/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,6 @@ public function onRegister()

$rules = (new UserModel)->rules;

$rules = [
'email' => 'required|email|between:6,255',
'password' => 'required|between:4,255|confirmed'
];

if ($this->loginAttribute() !== UserSettings::LOGIN_USERNAME) {
unset($rules['username']);
}
Expand Down

0 comments on commit 32103e1

Please sign in to comment.