Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7404795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:18:24+00:00 2026-05-29T05:18:24+00:00

For a password change I am using auth_views.password_change and for the password reset auth_views.password_reset

  • 0

For a password change I am using auth_views.password_change and for the password reset auth_views.password_reset.

How can I be notified when a user successfully changes their password? I do not need to know old nor new password. Just that the event took place, and for which user.

Similarly, I would like to get notified when someone requested a password reset and also when they successfully completed the reset procedure.

Can i do the above with signals or some simple patching? Or do I need to write my own views to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:18:25+00:00Added an answer on May 29, 2026 at 5:18 am

    Create a decorator:

    def notify_admins(func):
        def wrapper(request, *args, **kwargs):
            # send email to admins
            return func(request, *args, **kwargs)
        return wrapper
    

    Then, just add wrap it around the appropriate views in your urls.py:

    urlpatterns = patterns('',
        ...
        (r'^password_change/done/$', notify_admins(auth_views.password_change_done)),
        (r'^password_reset/done/$', notify_admins(auth_views.password_reset_done)),
        (r'^reset/done/$', notify_admins(auth_views.password_reset_complete)),
        ...
    )
    

    Keep in mind that sending email directly from a view, or in this case a decorator, will tie up the request. Instead of sending the email there directly, it would be better to create a custom signal and a handler that will fire off a thread to actually send the email. Then, in the decorator, you simply send the signal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ASP.NET Roles with a special role Must Change Password. If a user
How do I change a local user account password remotely using VB.NET/C#? I have
I need to redirect users to the Change Password page if their password has
I want a form where user can change password. I am able to encrypt
I am currently using the forms in django.contrib.auth to change a user password, but
I'm using the generic view django.contrib.auth.views.password_reset for the password reset form. In principle, it
I'm using the Asp.net change password control in my application and all seems to
how can i change password manual directly in table membership? passwordformat=1, so how can
I am looking for a way to change the password of a local user
Are there any working packages to change a linux user passwords using PHP? I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.