diff --git a/src/Illuminate/Foundation/Auth/ResetsPasswords.php b/src/Illuminate/Foundation/Auth/ResetsPasswords.php index 7aa3e54a2d4f..09677aefedcb 100644 --- a/src/Illuminate/Foundation/Auth/ResetsPasswords.php +++ b/src/Illuminate/Foundation/Auth/ResetsPasswords.php @@ -182,7 +182,12 @@ public function postReset(Request $request) */ public function reset(Request $request) { - $this->validate($request, $this->getResetValidationRules()); + $this->validate( + $request, + $this->getResetValidationRules(), + $this->getResetValidationMessages(), + $this->getResetValidationCustomAttributes() + ); $credentials = $request->only( 'email', 'password', 'password_confirmation', 'token' @@ -217,6 +222,26 @@ protected function getResetValidationRules() ]; } + /** + * Get the password reset validation messages. + * + * @return array + */ + protected function getResetValidationMessages() + { + return []; + } + + /** + * Get the password reset validation custom attributes. + * + * @return array + */ + protected function getResetValidationCustomAttributes() + { + return []; + } + /** * Reset the given user's password. *