Problems with CreateUserWizard and ChangePassword

Last post 08-08-2008 11:07 AM by sssgupta. 5 replies.

Sort Posts:

  • Problems with CreateUserWizard and ChangePassword

    03-21-2007, 2:09 PM
    • Member
      point Member
    • amglori
    • Member since 03-21-2007, 5:17 PM
    • Posts 3

    I'm working on a project in ASP.NET 2.0 using the Membership system -- it's my first time using it.  I'm running into this strange problem that I'm hoping someone can give me some insight on:

    First, on my CreateAccount.aspx page, I have a CreateUserWizard control.  It seemed to work great the first few times I tested it (and others tested it), however all of a sudden it stopped working.  When you try to create a new user account, you enter the username, password, password confirm, email address, hint question, and hint answer and click submit -- the user DOES get created in the database BUT instead of going to the dialog that ways the user was created successfully and displaying the "continue" button -- it instead gives the error: "Please enter a different user name." (even though the user WAS created).

    If, from that point, I just go to my Login.aspx page and login as the user I just created (when I got the error), I'm able to login and everything works fine.

    Also, I am *only* having this problem in IE6.  If I create a user in Firefox 2.0.0.1, the confirmation that a user was created and the "continue" display just fine as they should.

    I'm experiencing the same problem with the ChangePassword control also.  If I'm using IE6 and I login then go to MyAccount.aspx, where I have my ChangePassword control, I enter my current password and my new password twice and press the "change password" button, I get the error: "Password incorrect or New Password invalid. Passwords must be at least 5 characters long." (which is the error I defined in the ChangePasswordFailureText property of the ChangePassword control) even though my new password DID meat the criteria defined in the web.config ... however, once again it DOES change the password even though it's displaying the error message.  If I logout and log back in, I have to use the NEW password to login because it WAS updated.

    Has anyone else experienced this problem? As I mentioned, it works fine in Firefox 2, but IE6 it does this periodically.  It was working fine this morning and this afternoon it's doing this and I can't get it to NOT do it.  Any clues?  Thanks!


     

  • Re: Problems with CreateUserWizard and ChangePassword

    03-23-2007, 12:21 AM
    Answer
    • Member
      12 point Member
    • SLiddicoat
    • Member since 03-23-2007, 4:06 AM
    • Posts 4

    I'm seeing the same problem using IE7, but not in Firefox 2.  Are you using the CSS Friendly Control Adapters?  I can only reproduce the problem in an application using the CSS Friendly Control Adapters.  When I remove the CreateUserWizard adapter from the CSSFriendlyAdapters.browser file, the wizard works correctly.

  • Re: Problems with CreateUserWizard and ChangePassword

    03-26-2007, 3:47 PM
    • Member
      point Member
    • amglori
    • Member since 03-21-2007, 5:17 PM
    • Posts 3

    SLiddicoat:
    Are you using the CSS Friendly Control Adapters? ... When I remove the CreateUserWizard adapter from the CSSFriendlyAdapters.browser file, the wizard works correctly.

    Yes, I am using CSS Friendly Control Adapters.  And sure enough, you're right.  If I take it out of the .browser file, I no longer have the problem! 

  • Re: Problems with CreateUserWizard and ChangePassword

    04-05-2007, 11:56 AM
    • Member
      2 point Member
    • lucky_123
    • Member since 04-05-2007, 3:53 PM
    • Posts 1

    Hi

    I came across the same problem too. Can u please let me know whether u got a solution other than removing the adapters.

     Thanks

    Lucky 

     

  • Re: Problems with CreateUserWizard and ChangePassword

    04-13-2007, 12:29 PM
    • Member
      128 point Member
    • steve harman
    • Member since 07-10-2006, 3:32 AM
    • Posts 38
    The same discussion is happening over here: http://forums.asp.net/thread/1664830.aspx - CSS Adapter breaks CreateUserWizard
  • Re: Problems with CreateUserWizard and ChangePassword

    08-08-2008, 11:07 AM
    • Member
      2 point Member
    • sssgupta
    • Member since 08-08-2008, 10:56 AM
    • Posts 1

    Amglori,

    I am having similar problem too. However, as I can see your code actually works by committing the new password. In my case it doesn't. Here is what I have:

    1. I created a Login.aspx page with CreateUserWizard control.

    2. I created a ChangePassword page ChangePassword.aspx.

    3. When I login from Login page the program allows me to go to the Home page. But when I change password I get the same error that you got "Password incorrect or New Password invalid. Passwords must be at least 7 characters long." (which is the error I defined in the ChangePasswordFailureText property of the ChangePassword control).

    I am new to ASP .Net so please excuse my ignorance. Isn't same web.config file used to "connect" to aspnetdb.mdf when accessing via Logic.aspx and ChangePassword.aspx ? I am thinking that some how ChangePassword is not able to match the "current" password (and not the new password). How can I debug whether it is the current password that is causing the error of the new password ?

    Any help ?  

    Thanks

    SG

Page 1 of 1 (6 items)