From 1c4cbc6b5c120ed70de17e1e462c9b5f10be4f03 Mon Sep 17 00:00:00 2001 From: David Bwire Date: Mon, 20 Oct 2014 16:50:57 +0300 Subject: [PATCH] Filter Email Add a StringTrim filter to elimate spaces before or after an email --- src/GoalioForgotPassword/Form/ForgotFilter.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GoalioForgotPassword/Form/ForgotFilter.php b/src/GoalioForgotPassword/Form/ForgotFilter.php index 93067cd..093eb10 100644 --- a/src/GoalioForgotPassword/Form/ForgotFilter.php +++ b/src/GoalioForgotPassword/Form/ForgotFilter.php @@ -20,6 +20,11 @@ public function __construct( $emailValidator, ForgotOptionsInterface $options) $this->add(array( 'name' => 'email', 'required' => true, + 'filters' => array( + array( + 'name' => 'StringTrim', + ), + ), 'validators' => array( array( 'name' => 'EmailAddress'