We have an application programmed with ASP.NET and C#. The application has users which can change their passwords. And there is our problem:
When a user changes the password, the new password gets sent to the server and we save the new password in the code using EntityFramework:
var entry = this.dataContext.Entry(entity);
entry.State = EntityState.Modified;
this.dataContext.SaveChanges();
Anyway, when the user now tries to log in with the new password, he fails. Instead, he still can log in with the old password.
We know that the DatabaseContext still has the old data in it, but we don't know why, and how we can enforce it to load the new data after we saved the edited data. On the database, the new password gets saved.
LazyLoadingEnabled is set to false, if that helps.
Can anyone help us?