Last modified: 2013-08-10 17:37:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46165, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44165 - [SUGGESTION] Add extension hooks for OpenID link/unlink
[SUGGESTION] Add extension hooks for OpenID link/unlink
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
OpenID (Other open bugs)
master
All All
: Lowest enhancement (vote)
: ---
Assigned To: T. Gries
http://stackoverflow.com/q/14343703/1...
:
Depends on:
Blocks: 9604
  Show dependency treegraph
 
Reported: 2013-01-19 21:44 UTC by googltakovr
Modified: 2013-08-10 17:37 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description googltakovr 2013-01-19 21:44:17 UTC

    
Comment 1 T. Gries 2013-01-19 22:08:41 UTC
ok
Comment 2 T. Gries 2013-02-10 10:02:49 UTC
reported by asked Jan 15 at 17:50 angrybirderer57661 and copied to here from http://stackoverflow.com/questions/14343703/autopromote-users-when-they-link-an-openid-to-their-account :


"I'm using MediaWiki with the OpenID extension, and would like the wiki to autopromote users that link their OpenID(s) to their editing accounts, and autorevoke them if there are no linked OpenIDs. I know the MediaWiki syntax for autopromotion, but do not know the event ID triggered when an OpenID is linked/unlinked."
	

To achieve this feature, the OpenID extension needs to have hooks.

What are hooks?

Hooks in MediaWiki are events subscription facilities: they are arrays of functions to call when a specific event occurs.

For example, the UserSetEmail hook will allow any functions to be called when an user sets a email. More information about hooks.

We need OpenID extension hooks.

As soon UserSetOpenID and UserUnsetOpenID hooks will be available, you will be able to add your autopromotion code in a function, called by these hooks:

$wgHooks['UserSetOpenID'][] = 'PromoteUserOnOpenID';

function PromoteUserOnOpenID ( $user, &$OpenID ) {
    //The promotion code
}
Comment 3 T. Gries 2013-05-07 07:05:22 UTC
@bug reporter angrybirderer57661 :

Is this still needed by someone else? 

Or can I close the bug ?
Comment 4 T. Gries 2013-08-10 17:37:20 UTC
no answer thus closing.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links