Last modified: 2014-07-15 23:54:38 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 T12074, the corresponding Phabricator task for complete and up-to-date bug report information.
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.