Send An Email To The Site Admin When A Password Is Changed Excluding Certain Roles

When managing sites for clients it can be helpful to know when they may be in trouble. The below code allows me to get a notification whenever an account with elevated privileges has a password changed or changes their own password. This should catch an notify me for any route that is taken to update a password.

Members can access the code below.

To access this content, you must purchase Code Ninja Membership.