Project

General

Profile

Actions

Patch #3019

closed

Add hook to successful_authentication method

Added by Brad Beattie about 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin API
Target version:
Start date:
2009-03-20
Due date:
% Done:

100%

Estimated time:

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.


Files

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

Updated by Eric Davis about 15 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

Actions #2

Updated by Eric Davis about 15 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

Actions #3

Updated by Brad Beattie about 15 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? :)

Actions #4

Updated by Eric Davis about 15 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.

Actions #5

Updated by Jean-Philippe Lang almost 15 years ago

  • Status changed from Resolved to Closed

Backported in 0.8-stable in r2652.

Actions

Also available in: Atom PDF