original_string: protected function resetPasswordFirstStep($form)
      {
          $loginMail = $form->getSubmitValue('form_login');
          $password  = $form->getSubmitValue('form_password');
  
          try {
              $this->passwordResetter->initiatePasswordResetProcess($loginMail, $password);
          } catch (Exception $ex) {
              Log::debug($ex);
  
              return array($ex->getMessage());
          }
  
          return null;
      }
code: protected function resetPasswordFirstStep($form)
      {
          $loginMail = $form->getSubmitValue('form_login');
          $password  = $form->getSubmitValue('form_password');
  
          try {
              $this->passwordResetter->initiatePasswordResetProcess($loginMail, $password);
          } catch (Exception $ex) {
              Log::debug($ex);
  
              return array($ex->getMessage());
          }
  
          return null;
      }
code_tokens: protected function resetPasswordFirstStep ( $ form ) { $ loginMail = $ form -> getSubmitValue ( 'form_login' ) ; $ password = $ form -> getSubmitValue ( 'form_password' ) ; try { $ this -> passwordResetter -> initiatePasswordResetProcess ( $ loginMail , $ password ) ; } catch ( Exception $ ex ) { Log :: debug ( $ ex ) ; return array ( $ ex -> getMessage ( ) ) ; } return null ; }
docstring: Saves password reset info and sends confirmation email.
  
  @param QuickForm2 $form
  @return array Error message(s) if an error occurs.
docstring_tokens: Saves password reset info and sends confirmation email .