Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

PasswordReset does not seem to work #159

Closed
DavidRogersDev opened this issue Nov 24, 2013 · 4 comments
Closed

PasswordReset does not seem to work #159

DavidRogersDev opened this issue Nov 24, 2013 · 4 comments

Comments

@DavidRogersDev
Copy link

The PasswordReset does not seem to work anymore.

I've been trying to reset a password using different smtp configurations, and an email never gets sent.

Debugging the code, the matchingHandlers variable in the method RaiseEvent(IEvent evt) always yields 0 handlers.

I think this used to work. Has something here been changed significantly?

Cheers

@brockallen
Copy link
Owner

I'm running on the latest and just tested it and it's working.

Are you running with a version from NuGet or the samples or your own custom copy of the code? You need to make sure there's an event handler registered for those events (password reset).

@DavidRogersDev
Copy link
Author

I cannot get the latest code to compile, so I am using v.4.0.0.

In the sample app, an PasswordResetRequestedEvent is definitely added. In the EventBus class, there's a method called RaiseEvent. when that is passed to GetHandlers, no items are returned in the matchingHandlers variable. So the foreach loop iterates 0 items.

@brockallen
Copy link
Owner

Ok, I'll look into the latest not compiling -- I've been doing a lot of changes over the past few days (I suspect it's some NuGet issue).

As for the email -- did you comment out the line in ~/App_Start/MembershipRebootConfig.cs did you uncomment the lines that add the EmailAccountCreatedEventHandler and/or EmailAccountEventsHandler handler classes?

@DavidRogersDev
Copy link
Author

Ah that's what did it. I had not uncommented that line in MembershipRebootConfig.cs
Sorry about that. Thanks for your time in helping me out with that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants