Login fails after upgrade to ASP.net 4.0 from 3.5

前端 未结 2 972
再見小時候
再見小時候 2020-12-18 02:05

I cannot log in using any of the membership accounts using .net 4.0 version of the app. It fails like it\'s the wrong password, and FailedPasswordAttemptCount is incremented

2条回答
  •  猫巷女王i
    2020-12-18 02:37

    I am having the exact same problem. I have my web application in both 3.5 and 4.0 and only the "old" accounts work on the 3.5 instance.

    Here's to hoping someone has an answer!

    UPDATE:

    I changed the passwordFormat to Clear and I was able to create a new user and log in with the 4.0 application. Looks like something has changed with the way the passwords are hashed.

    UPDATE 2:

    I was able to make one of the "old" accounts work. With the above change to the passwordFormat, I changed the PasswordFormat column in my_aspnet_membership to 0 and set the password manually in the same table. While this is convoluted and messy, it let the account get it. I'm going to try running password reset and see if that fixes the broken accounts.

提交回复
热议问题