Last modified: 2014-07-15 23:54:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10074 - Authentication extensions need interface to override userlogin link in userNotLoggedInPage()
Authentication extensions need interface to override userlogin link in userNo...
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Low minor with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-05-30 18:32 UTC by D.J. Capelis
Modified: 2014-07-15 23:54 UTC (History)
2 users (show)

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


Description D.J. Capelis 2007-05-30 18:32:57 UTC
As of now, authentication extensions not using Special:UserLogin cannot provide an acceptable interface through this function.  It would be nice if there was some sort of hook to pass in an array of possible login forms (for those extensions that support more than one method of authentication) or at the very least override the link text to point elsewhere.

I'd write a patch for this, but I have a feeling you folks are going to want to do it a certain way as doing this properly (supporting more than one login form, or at least the MW default along with another link) may be non-trivial and require additional translations.  (Just speculation.)

The function in question is in EditPage.php starting on line 1459 as per current SVN.
Comment 1 drzraf 2011-11-17 16:58:32 UTC
AFAICT, you can override login/logout links which are located in the personal URLs bar with the Hooks/PersonalUrls
But there is no way to override the link generated by loginToUse().
Sadly, this function is responsible of the message (and the link) when a connexion is needed to view a page.

(there _may_ be better hooks around Special:Userlogin and/or redirections for this kind of needs)

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