Skip to content

Commit

Permalink
Laravel rules exists user
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetserefoglu committed Nov 4, 2020
1 parent 635026a commit bdac630
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Http/Controllers/Auth/ResetPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ public function find($token) {
public function resetpassword(Request $request) {

$rules = [
'email' => 'required|string|email',
'email' => 'exists:users',
'email' => 'required|string|email|exists:users',
'token' => 'required|string',
'password' => 'required|string|min:6|confirmed',
];
Expand Down

0 comments on commit bdac630

Please sign in to comment.