ASP.NET MVC4 WebMatrix WebSecurity Forms authentication: Changing a username -


i'm using webmatrix websecurity application's forms authentication.

the user needs able change username, without being logged out.

i supposed calling websecurity.logout(), followed websecurity.login() trick, login() requires password. of course, cannot provide password hashed in db.

how can make requirement work?

edit: below few suggestions on how fix issue of changing username.

however, actual problem cookie still holds old username. found following instructions on how handle that:

http://omaralzabir.com/how_to_change_user_name_in_asp_net_2_0_membership_provider/

since webmatrix websecurity done via userid, not username, change data in table storing userdata in, , redirect them new page. don't need log them out , in, believe new username picked immediately.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -