public function resetPassword(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $email = $this->getSubmitted('email');
        $password = $this->getSubmitted('password');

        if (isset($password)) {
            $this->validateStatusUser();
            $this->validatePasswordLengthUser();
        } else if (isset($email)) {
            $this->validateEmail();
            $this->validateEmailExistsUser();
        }

        return $this->getResult();
    }
public function resetPassword(array &$submitted, array $options = array())
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $email = $this->getSubmitted('email');
        $password = $this->getSubmitted('password');

        if (isset($password)) {
            $this->validateStatusUser();
            $this->validatePasswordLengthUser();
        } else if (isset($email)) {
            $this->validateEmail();
            $this->validateEmailExistsUser();
        }

        return $this->getResult();
    }
public function resetPassword ( array & $ submitted , array $ options = array ( ) ) { $ this -> options = $ options ; $ this -> submitted = & $ submitted ; $ email = $ this -> getSubmitted ( 'email' ) ; $ password = $ this -> getSubmitted ( 'password' ) ; if ( isset ( $ password ) ) { $ this -> validateStatusUser ( ) ; $ this -> validatePasswordLengthUser ( ) ; } else if ( isset ( $ email ) ) { $ this -> validateEmail ( ) ; $ this -> validateEmailExistsUser ( ) ; } return $ this -> getResult ( ) ; }
Performs password reset validation
@param array $submitted
@param array $options
@return array|boolean
Performs password reset validation