From 3d8476efd3709806d254b1c41e26e906080e0b39 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 21 Jul 2019 13:37:35 +0200 Subject: ErrorHandler: Remove more form fields before serialization --- src/Middleware/ErrorHandler.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Middleware/ErrorHandler.php b/src/Middleware/ErrorHandler.php index 544f35d5..65e2e609 100644 --- a/src/Middleware/ErrorHandler.php +++ b/src/Middleware/ErrorHandler.php @@ -29,6 +29,12 @@ class ErrorHandler implements MiddlewareInterface protected $formIgnore = [ 'password', 'password_confirmation', + 'password2', + 'new_password', + 'new_password2', + 'new_pw', + 'new_pw2', + '_token', ]; /** -- cgit v1.2.3