Manually changing username in Asp.Net Membership

前端 未结 3 1342
我在风中等你
我在风中等你 2021-01-01 02:37

I am able to change a username by directly accessing the asp.net membership user tables. However, the old username is preserved in a new row and assigned a new UserID autom

3条回答
  •  既然无缘
    2021-01-01 03:02

    You have to change both UserName and LoweredUserName... I assume the API used the other field, did the lookup, observed the record didn't exist (because the one was changed), and created a new one. Typically, it doesn't preserve the old records.

    EDIT: Could the issue also be you are looking up the account by the ProviderUserKey field?

提交回复
热议问题