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;
    }
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;
    }
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 ; }
Saves password reset info and sends confirmation email.

@param QuickForm2 $form
@return array Error message(s) if an error occurs.
Saves password reset info and sends confirmation email .