MySQL Forums
Forum List  »  MySQL for Visual Studio

Entity Framework + MySql + resetPassword
Posted by: Massimo Mondino
Date: February 16, 2017 03:13AM

Hi all,

is there a way to reset the password of some users? My app is using EF and MySQL as database. What I did and throwing me an exception is:

string token = MySql.Web.Security.MySqlWebSecurity.GeneratePasswordResetToken(user.Name);
MySql.Web.Security.MySqlWebSecurity.ResetPassword(token, "pass");

The point is:
token is always null but I'm sure the user exists. So, I have tried to search about that error on Internet and I have found that:

It seems a known bug but here comes the nood question. How can I fix it? I can't modify the MySqlSimpleMembershipProvider.cs. I just reference the MySql.Web in my project (and it's an assembly). Do I need to reference a newer assembly? But I got it from the MySql connector version and it seems the last version.


Options: ReplyQuote

Written By
Entity Framework + MySql + resetPassword
February 16, 2017 03:13AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.