i am getting bug

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
when enable mobile supported from admin. i am getting null when modify header of browser.

public virtual Customer GetAuthenticatedCustomer()
        {
            if (_cachedCustomer != null)
                return _cachedCustomer;

            if (_httpContext == null ||
                _httpContext.Request == null ||
                !_httpContext.Request.IsAuthenticated ||
                !(_httpContext.User.Identity is FormsIdentity))
            {
                return null;
            }

            var formsIdentity = (FormsIdentity)_httpContext.User.Identity;
            var customer = GetAuthenticatedCustomerFromTicket(formsIdentity.Ticket);
            if (customer != null && customer.Active && !customer.Deleted && customer.IsRegistered())
                _cachedCustomer = customer;
            return _cachedCustomer;
        }


getting null _httpContext.User.Identity is FormsIdentity.

Please help me... it's very very urgent.
9 years ago
Hello

I am getting bug while using mobile supported enable. i am using nopcommerce 3.10. when log in using mobile device it's not log in.

i have spend a lots of time for resolve this issue but i am not able to fix this issue. while debugging i am getting  in "\Libraries\Nop.Services\Authentication\FormsAuthenticationService.cs" method name is
public virtual Customer GetAuthenticatedCustomer()
_httpContext.User.Identity is FormsIdentity  
  _httpContex.User is null when log in from mobile device.



Please help me.

this is very very urgent.
9 years ago
i think form authentication is not working on mobile device (browser header modifier) ?
9 years ago
when i changes user-agent i am getting
_httpContext.User
null.

Help :(
9 years ago
when i changed useragent of browser.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.