Piwik\Plugins\Login\Controller::resetPasswordFirstStep PHP Method

resetPasswordFirstStep() protected method

Saves password reset info and sends confirmation email.
protected resetPasswordFirstStep ( Piwik\QuickForm2 $form ) : array
$form Piwik\QuickForm2
return array Error message(s) if an error occurs.
    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;
    }