brockallen / BrockAllen.MembershipReboot

MembershipReboot is a user identity management and authentication library.
Other
742 stars 238 forks source link

Question about password expired #622

Closed joramwangi closed 8 years ago

joramwangi commented 8 years ago

Hello. I am trying to use the password expired functionality of this library. I want the password to be reset whenever expired, however i need to customize the email sent to the user to be specific to password expiry and not use the password reset template.

I cannot find a password expiry event. Could you suggest how I can, within the .IsPasswordExpired(account)

  1. Stop the password reset event from firing
  2. Trigger a specific email template for password expiry

Any suggestions appreciated

brockallen commented 8 years ago

Well, there is no real functionality around password expired -- it's really just a helper to calculate if the password is expired. Your UI would need to check it and enforce it in some way.

joramwangi commented 8 years ago

Is there a way to call passwordreset but but not trigger the password reset event

On Thu, Mar 10, 2016 at 12:24 AM, Brock Allen notifications@github.com wrote:

Well, there is no real functionality around password expired -- it's really just a helper to calculate if the password is expired. Your UI would need to check it and enforce it in some way.

— Reply to this email directly or view it on GitHub https://github.com/brockallen/BrockAllen.MembershipReboot/issues/622#issuecomment-194512170 .

brockallen commented 8 years ago

If you don't care about the event, then don't register a handler for the event.