More in this section

Forums / Bugs & Issues / Incorrect Username/Password Combination

Incorrect Username/Password Combination

2 posts, 0 answered
  1. Jacques
    Jacques avatar
    427 posts
    28 Jun 2007
    07 Jun 2011
    Link to this post
    Hi there,

    We can't login to our Sitefinity 4.1 website.

    1. We've checked to make sure that the web.config and the App_data/.../data.config files both point to the correct DB
    2. We've created a dummy Aspx page with a login control and attached to the LoginError event. No help there. The error does fire, but no details are given
    3. In break mode we created a reference to Sitefinity...UserManager and could successfully get an instance of the user using the GetUser method. We tried ValidateUser and that failed. We then called ResetPassword, which returned a new password (irrespective of the Question Answer provided - i.e. it didn't care about the second parameter). We tried this new password using ValidateUser and it returned true. When we tried this password in the UI it failed. We stopped debugging, started it again and when we tried the new password again using ValidateUser, it didn't work.

    We copied the application from our clients server to ours recently, not sure if that makes any difference?

  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    30 Oct 2017
    09 Jun 2011
    Link to this post
    Hello J.Hoventer,

    Can you try creating a new user programatically like this:
    var userManager = UserManager.GetManager("Default");
    System.Web.Security.MembershipCreateStatus status;
    userManager.Provider.SuppressSecurityChecks = true;
    var user = userManager.CreateUser("user1", "user1234@", "", "Question", "Answer", true, null, out status);
    user.FirstName = "FirstName";
    user.LastName = "LastName";
    RoleManager roleManager = RoleManager.GetManager("AppRoles");
    roleManager.Provider.SuppressSecurityChecks = true;
    var role = roleManager.GetRole("Administrators");
    roleManager.AddUserToRole(user, role);
    and try logging in with the supplied credentials? Please let me know if the problems persist.

    Best wishes,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered