Make WordPress Core

Opened 11 years ago

Closed 5 years ago

#25269 closed enhancement (maybelater)

Action hook for when a user updates their password

Reported by: desrosj's profile desrosj Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch needs-refresh
Focuses: Cc:

Description

When a user changes their password, there should be an action hook.

A use case that came up for me was sending out an email to the user when their password is updated to alert them of the change.

Another one that I can think of is setting an expiration time frame to force the user to change their password after X amount of days.

Attachments (1)

25269.patch (546 bytes) - added by desrosj 11 years ago.
Adding password_updated action hook.

Download all attachments as: .zip

Change History (4)

@desrosj
11 years ago

Adding password_updated action hook.

#1 @nacin
11 years ago

That code block only occurs when the current user changes his own password, not when someone else is changing their password for them.

#2 @chriscct7
9 years ago

  • Keywords needs-patch added; has-patch removed

#3 @desrosj
5 years ago

  • Keywords has-patch needs-refresh added; needs-patch removed
  • Resolution set to maybelater
  • Status changed from new to closed

I'm going to close this out. The use case I originally mentioned above is now handled in core, and there have been no other requests for this hook.

Note: See TracTickets for help on using tickets.