CustomerController Question.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 anos atrás
The current version (2.4) had method MyAccount in the customer controller like this. Which returns an empty page for me

  [NopHttpsRequirement(SslRequirement.Yes)]
        public ActionResult MyAccount()
        {
            if (!IsCurrentUserRegistered())
                return new HttpUnauthorizedResult();

            var customer = _workContext.CurrentCustomer;

            var model = GetCustomerNavigationModel(customer);
            return View(model);
        }


Shouldn't it be like this?


[NopHttpsRequirement(SslRequirement.Yes)]
        public ActionResult MyAccount()
        {
            return RedirectToAction("info");
        }
12 anos atrás
Already asked here (this method is used only by the mobile version and should be used by the desktop one)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.