diff --git a/src/Illuminate/Foundation/Auth/ResetsPasswords.php b/src/Illuminate/Foundation/Auth/ResetsPasswords.php index cacaf2d51fa4..f384a7fd568f 100644 --- a/src/Illuminate/Foundation/Auth/ResetsPasswords.php +++ b/src/Illuminate/Foundation/Auth/ResetsPasswords.php @@ -35,7 +35,7 @@ public function showResetForm(Request $request, $token = null) */ public function reset(Request $request) { - $this->validate($request, $this->rules()); + $this->validate($request, $this->rules(), $this->validationErrorMessages()); // Here we will attempt to reset the user's password. If it is successful we // will update the password on an actual user model and persist it to the @@ -67,6 +67,16 @@ protected function rules() ]; } + /** + * Get the password reset validation error messages. + * + * @return array + */ + protected function validationErrorMessages() + { + return []; + } + /** * Get the password reset credentials from the request. *