-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResetPassword() not working? #3
Comments
Hi Troy, Hmm...normally I would guess it was not using safe mode so it was failing silently when it was performing the save. But MongoProvider's Save method explicitly uses safe mode that shouldn't be the issue. I'd suggest trying two things:
I'll add a test to explicitly check that the db is updated upon password reset. Hope that helps, |
Thanks Adrian, I'm relatively new to Mongo. What is safe mode? I have already checked the points in #1 and it all checks out properly. Interestingly enough the MembershipUser ChangePassword() method works properly. I think the next step is try compiling in debug mode as you suggested. BTW thank you for such a great tool. I've been using the Membership API with SQL providers for about 4 or 5 years now. When switching to a NoSQL solution I looked at Raven and several others. What convinced me that Mongo was the way to go was your MongoProviders library! |
Hi Troy, Glad you find it useful! By default mongo will silently fail if Please let me know the results of your debugging. Regarding using NoSQL, I have really enjoyed the switch myself. You I've been very impressed with what I've heard about RavenDB but don't https://github.com/martijnboland/RavenDBMembership Looks like its not really being used in production (some of the Adrian On Wed, May 30, 2012 at 9:45 AM, Troy Forster
|
Hi Adrian, this was back-burnered for a bit while I worked on other features. Just getting back to it now. I've double checked collections and dbs and they're all correct. My next step is to compile in debug mode. I'm afraid I have a newbie question though: I added the providers references using NuGet. So, to try debug mode I downloaded the latest source from here, put it into a separate project, added the project to my solution and then tried to delete the references created by NuGet before adding a reference to the new related project. I probably don't know enough about NuGet yet to figure out how to remove it from my solution. I just keep getting invalid references to all the provider calls. Any idea how one goes about adding a reference to a local project in the solution AFTER the same project was referenced via NuGet? I even deleted packages.config thinking that might tell VS that there's no NuGet involved and thus wake it up to using the project added to the solution. In the mean time I have been going through the provider source for resetpassword and nothing looks unusual. It appears that it references the Mongo collection through a variable which should work. Most odd. Troy |
Hi Troy, This project actually doesn't have a NuGet package yet. There is a If not and you want to get debug working here's what I recommend:
...and you should be good to go. Please let me know how that turns out. :-) Cheers, On Wed, Jun 6, 2012 at 9:12 PM, Troy Forster
|
I'm using the latest version but calls to ResetPassword() to appear to persist changes to the Users collection. ResetPassword() does return a new password that observes all the password rules in web.config. But checking the Users collection shows no change in LastPasswordChangeDate or Password properties.
The text was updated successfully, but these errors were encountered: