예제 #1
0
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $options = $serviceLocator->get('goalioforgotpassword_module_options');
     $form = new Forgot(null, $options);
     $validator = new \ZfcUser\Validator\RecordExists(array('mapper' => $serviceLocator->get('zfcuser_user_mapper'), 'key' => 'email'));
     $translator = $serviceLocator->get('Translator');
     $validator->setMessage($translator->translate('Thank you, if your email address is in our database you will receive a mail message in your mailbox.'));
     $form->setInputFilter(new ForgotFilter($validator, $options));
     return $form;
 }
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $options = $serviceLocator->get('goalioforgotpassword_module_options');
     $form = new Forgot(null, $options);
     $validator = new \ZfcUser\Validator\RecordExists(array('mapper' => $serviceLocator->get('zfcuser_user_mapper'), 'key' => 'email'));
     $translator = $serviceLocator->get('Translator');
     $validator->setMessage($translator->translate('The email address you entered was not found.'));
     $form->setInputFilter(new ForgotFilter($validator, $options));
     return $form;
 }