Skip to content

Commit

Permalink
Add getResetCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
ElfSundae committed Jun 1, 2016
1 parent d1aaff8 commit 749e98f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/Illuminate/Foundation/Auth/ResetsPasswords.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ public function reset(Request $request)
$this->getResetValidationCustomAttributes()
);

$credentials = $request->only(
'email', 'password', 'password_confirmation', 'token'
);
$credentials = $this->getResetCredentials($request);

$broker = $this->getBroker();

Expand Down Expand Up @@ -275,6 +273,19 @@ protected function getResetValidationCustomAttributes()
return [];
}

/**
* Get the password reset credentials from request.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
protected function getResetCredentials(Request $request)
{
return $request->only(
'email', 'password', 'password_confirmation', 'token'
);
}

/**
* Reset the given user's password.
*
Expand Down

0 comments on commit 749e98f

Please sign in to comment.