Skip to content

Commit

Permalink
Revert "Check for unique user and email. Closes #2118"
Browse files Browse the repository at this point in the history
This reverts commit 6ce4348.
  • Loading branch information
jbrooksuk committed Oct 1, 2016
1 parent 6ce4348 commit f21a2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
* @var string[]
*/
public $rules = [
'username' => ['required', 'regex:/\A(?!.*[:;]-\))[ -~]+\z/', 'unique:users,username'],
'email' => 'required|email|unique:users,email',
'username' => ['required', 'regex:/\A(?!.*[:;]-\))[ -~]+\z/'],
'email' => 'required|email',
'password' => 'required',
];

Expand Down

1 comment on commit f21a2b4

@jbrooksuk
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to fix this in a different way.

Please sign in to comment.