Project

General

Profile

Actions

Feature #3106

closed

New hook after saving user

Added by Dominik Wild over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-04-02
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid

Description

I need to run some plugin code after the password was changed.
Because a user can be manipulated in several different controllers I think the hooks seems to be placed best in the user model.

Actions #1

Updated by Eric Davis over 15 years ago

Instead of a hook, couldn't you just register your method to the User's after_save callback?

Actions #2

Updated by Dominik Wild over 15 years ago

  • Status changed from New to Resolved

Hm... well, I can't register a callback from outside the model, but I figured out that it is in fact possible using an observer. Thanks for the hint.

Actions #3

Updated by Eric Davis over 15 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

An observer is probably the best way anyways.

Actions

Also available in: Atom PDF