public function loginUser($customer)
    {
        $this->front->Request()->setPost('email', $customer->getEmail());
        $this->front->Request()->setPost('passwordMD5', $customer->getPassword());
        return $this->admin->sLogin(true);
    }
public function loginUser($customer)
    {
        $this->front->Request()->setPost('email', $customer->getEmail());
        $this->front->Request()->setPost('passwordMD5', $customer->getPassword());
        return $this->admin->sLogin(true);
    }
public function loginUser ( $ customer ) { $ this -> front -> Request ( ) -> setPost ( 'email' , $ customer -> getEmail ( ) ) ; $ this -> front -> Request ( ) -> setPost ( 'passwordMD5' , $ customer -> getPassword ( ) ) ; return $ this -> admin -> sLogin ( true ) ; }
Logs in the user for the given customer object

@param Customer $customer
@return array|bool
@throws \Exception
Logs in the user for the given customer object