Authenticate User

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hi,

I want to see if a user has a valid user name and password, before letting him access nopCommerce data through a web service. Does this still work:

    bool Authenticate(string username, string password)
    {
        return Membership.ValidateUser(username, password);
    }
11 years ago
This is how Nop.Plugin.Misc.WebServices does it

            if (!_customerRegistrationService.ValidateCustomer(usernameOrEmail, userPassword))
                    throw new ApplicationException("Not allowed");
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.