original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Performs password reset validation
  @param array $submitted
  @param array $options
  @return array|boolean
docstring_tokens: Performs password reset validation