Patch #3019

Add hook to successful_authentication method

Added by Brad Beattie over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:2009-03-20
Priority:NormalDue date:
Assignee:Eric Davis% Done:

100%

Category:Plugin API
Target version:0.8.3

Description

The attached patch provides a hook called after successful authentication and before the redirect call.

It's necessary for plugins that, for instance, notify users of changes since their last login.

patch.txt Magnifier (554 Bytes) Brad Beattie, 2009-03-20 18:39

Associated revisions

Revision 2609
Added by Eric Davis over 8 years ago

Added a plugin hook for :controller_account_success_authentication_after

#3019

History

#1 Updated by Eric Davis over 8 years ago

  • Category changed from Accounts / authentication to Plugin API
  • Status changed from New to 7
  • Assignee set to Eric Davis

I'll need to rename it to follow the standard but there shouldn't be any problem commiting it.

Naming details: http://www.redmine.org/issues/1677#note-15

#2 Updated by Eric Davis over 8 years ago

  • Status changed from 7 to Resolved
  • Target version set to 0.8.3
  • % Done changed from 0 to 100

Added in r2609, use :controller_account_success_authentication_after

#3 Updated by Brad Beattie over 8 years ago

Sweet. Thanks. I have it in my mind to add more hooks in more locations to help with plugin development, but a bit at a time might be best, yeah? :)

#4 Updated by Eric Davis over 8 years ago

Yes, I'm only trying to add hooks in places that are:

  1. Actually needed by someone
  2. Would be useful for more than one plugin

Like any API, the hooks have a cost that we need to be aware of.

#5 Updated by Jean-Philippe Lang over 8 years ago

  • Status changed from Resolved to Closed

Backported in 0.8-stable in r2652.

Also available in: Atom PDF