original_string: protected function loginCheckout()
      {
          $result = $this->user_action->login($this->getSubmitted('user'));
  
          if (isset($result['user'])) {
              $result = $this->cart_action->login($result['user'], $this->data_cart);
          }
  
          if (!empty($result['user'])) {
              $this->redirect($result['redirect'], $result['message'], $result['severity']);
          }
  
          $this->setError('login', $result['message']);
      }
code: protected function loginCheckout()
      {
          $result = $this->user_action->login($this->getSubmitted('user'));
  
          if (isset($result['user'])) {
              $result = $this->cart_action->login($result['user'], $this->data_cart);
          }
  
          if (!empty($result['user'])) {
              $this->redirect($result['redirect'], $result['message'], $result['severity']);
          }
  
          $this->setError('login', $result['message']);
      }
code_tokens: protected function loginCheckout ( ) { $ result = $ this -> user_action -> login ( $ this -> getSubmitted ( 'user' ) ) ; if ( isset ( $ result [ 'user' ] ) ) { $ result = $ this -> cart_action -> login ( $ result [ 'user' ] , $ this -> data_cart ) ; } if ( ! empty ( $ result [ 'user' ] ) ) { $ this -> redirect ( $ result [ 'redirect' ] , $ result [ 'message' ] , $ result [ 'severity' ] ) ; } $ this -> setError ( 'login' , $ result [ 'message' ] ) ; }
docstring: Log in a customer during checkout
docstring_tokens: Log in a customer during checkout