Commit graph

35 commits

Author SHA1 Message Date
Happy-melon
d3f901b029 Merge in Login rewrite, second time lucky. 2009-09-20 20:28:27 +00:00
Brion Vibber
841014ad91 Revert broken rewrite of login forms:
r55990 "* Totally refactor includes/specials/SpecialUserlogin.php:"
r55991 "Followup to r55990 - Remove debugging hack :("
r55994 "Followup to r55990 - rename method to avoid PHP Strict warnings"
r55997 "Follow-up to r55990, per comments:"

Continued reports of breakage with the new version...
Non-vital changes of this magnitude should probably be worked up on a branch to ensure everything's consistent before pushing them to trunk.
2009-09-08 18:40:05 +00:00
Happy-melon
fca012212f * Totally refactor includes/specials/SpecialUserlogin.php:
** Split backend stuff out into includes/Login.php
** Split account creation and login stuff up, into includes/specials/CreateAccount.php and includes/specials/Userlogin.php.
* Reimplement the special pages as subclasses of SpecialPage
* Use HTMLForm to generate the input forms
** Deprecate and delete includes/templates/Userlogin.php, which is horrible and old :D

This changes the syntax of the UserLoginForm and UserCreateForm hooks, and AuthPlugin::modifyUITemplate; they now receive the SpecialPage subclass rather than the template to work with. Update everything I could find in SVN to accommodate this.
2009-09-07 19:00:49 +00:00
Chad Horohoe
00a3b7956a (bug 9691) Add type parameter to ModifyUITemplate function calls 2009-07-27 23:53:23 +00:00
Chad Horohoe
9a97ba7bd0 Per code review: call allowPropChange() directly, and only reference the deprecated methods if they're available, this way if someone _has_ implemented these, they will still get their desired results. Removed them so A) We don't encourage people to use them, and B) We don't fool ourselves with is_callable() 2009-06-11 23:35:34 +00:00
Niklas Laxström
eac9273e08 Added wfDeprecated too 2009-05-20 05:45:18 +00:00
Charles Melbye
46003d5693 Follow-up to r50776. Retaining old method names for backwards compatibility,
but making them as deprecated. Patch by ^demon.
2009-05-20 04:30:03 +00:00
Chad Horohoe
9b3711e58b Per code review: Redo these allowBlah() functions (except allowPasswordChange) into a general allowPropChange(), update Preferences to use this. Checked extensions in SVN using AuthPlugin and none have implemented any of the allow*() functions, so nothing should break. 2009-05-19 16:23:58 +00:00
Chad Horohoe
e3d5b672e8 Default true :) 2009-05-01 01:34:37 +00:00
Chad Horohoe
1f18e8b35c (bug 9219) Auth plugins can control editing RealName/Email/Nick preferences. Based on patch by MrPete. 2009-05-01 01:27:22 +00:00
Aaron Schulz
84ab744191 (bug 16721) Reset auth token to stop auto-login. Auto-login defeats the user rename/touch change to break the login since the user can just get logged in again under the old name without noticing, which results in edits under the old name. 2008-12-28 11:50:33 +00:00
Aaron Schulz
381e589e96 (bug 16445) add info if accounts are not sul accounts to cu results 2008-11-27 07:45:08 +00:00
Aaron Schulz
66b4483f3d Remove cruft here 2008-10-05 02:48:40 +00:00
Aaron Schulz
5e326c34b5 Partial revert of r41527. Do this in a cleaner way. 2008-10-05 02:45:12 +00:00
Aaron Schulz
326e4d86c4 * Pull isLocked() and isHidden() up to User using callbacks
* Add quick globalblock check function to User
* Add 'locked'/'globally blocked' notices to checkuser (bug 15272) (bug 15792)
2008-10-02 01:12:07 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Alexandre Emsenhuber
e7259d6fb8 Fixed E_STRICT for CentralAuth extension 2008-03-27 14:03:22 +00:00
Thomas Bleher
ece86ccdb3 A few trivial changes:
* Update some URLs (pages moved from meta to mw.org)
* Update and fix some comments
* Fix indentation and whitespace in phase3/includes/filerepo/ICRepo.php
2008-02-09 21:48:41 +00:00
Brion Vibber
4f379f91c1 * AuthPlugin added strictUserAuth() method to allow per-user override
of the strict() authentication behavior.

Fixes the hole where old local passwords could still be used to log into the global account after merging.
Based on patch by Rotem Liss from http://he.wikipedia.org/wiki/%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9:Rotemliss/CentralAuth#2
Changed function name from authenticateLocally() to strictUserAuth() and reversed return value to mesh a little better with strict()
2007-10-02 19:02:44 +00:00
Brion Vibber
987629dfec update prototype 2007-08-04 16:36:25 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Brion Vibber
0a780e83bf * Pass e-mail and real name fields to AuthPlugin::addUser, as additional
optional fields, which may be considered useful at registration time.

This fixes the problem where the e-mail address given for a new account
got replaced with null. Woops!
2007-01-12 08:42:36 +00:00
Brion Vibber
295d0bf295 * Accept null parameter to User::setPassword() as indicating the password
field should be cleared to an unusable state. Login will only be possible
  after the password is reset, for instance by e-mail.
* (bug 6394) Invalidate the password set for "by e-mail" account creations
  to avoid accidental empty password creations.
2006-12-13 08:59:20 +00:00
Brion Vibber
b421ac803e Woops, left a parameter off of the AuthPlugin default interface class. *embarrassed* 2006-11-28 00:16:49 +00:00
Rob Church
7e9ddc0e23 * (bug 6006) Allow hiding the password change fields using an authentication plugin 2006-06-29 00:57:56 +00:00
Antoine Musso
69689725c1 Switching from phpdoc to doxygen (use less than 32MB of memory).
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00
Brion Vibber
f2c29baf9f Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Brion Vibber
e4480a80af * (bug 2943) AuthPlugin::getCanonicalName() name canonicalization hook, patch from robla
http://bugzilla.wikimedia.org/show_bug.cgi?id=2943
http://bugzilla.wikimedia.org/attachment.cgi?id=739
2005-07-24 09:48:14 +00:00
Brion Vibber
cfa06c17ae * (bug 814) Integrate AuthPlugin changes to support Ryan Lane's external
LDAP authentication plugin
2005-06-03 11:56:02 +00:00
Brion Vibber
8f7f70d112 add comment that local accounts are necessary to log in 2005-03-09 09:27:24 +00:00
Antoine Musso
2104f62734 fix phpdoc comment 2005-01-27 19:51:47 +00:00
Brion Vibber
f5a1ac6798 Experimental authentication plugin interface. Will require a little bit more work to nail down all requirements. 2004-11-16 05:28:47 +00:00