Commit graph

588 commits

Author SHA1 Message Date
OverlordQ
a989843cd0 Code cleanup, covert leading spaces into tabs per coding style 2009-11-14 21:27:13 +00:00
Roan Kattouw
68b2e720c0 Revert accidentally committed stuff in r58399 2009-11-01 19:48:18 +00:00
Chad Horohoe
70a038b808 Fix another regression from r57558, bug 21369 - Lowercase logins causes MediaWiki to crash 2009-11-01 13:58:37 +00:00
Roan Kattouw
1d471caa46 API: (bug 19004) Add support for tags. Patch by Matthew Britton 2009-11-01 10:42:41 +00:00
Jure Kajzer
03d3a3f4ea Switch to default skin if user session found without persistent creds. Bug 19048 2009-10-29 14:19:05 +00:00
Ryan Schmidt
9b4135e9f8 * re-commit r58172 with the fix for the issue mentioned where users would not be able to log in 2009-10-28 17:53:36 +00:00
Raimond Spekking
c4b785221f Revert r58171/r58172 for now. It seems it breaks login to translatewiki.net 2009-10-27 07:13:13 +00:00
Ryan Schmidt
b99614119a * User::isValidPassword now only returns boolean results, User::getPasswordValidity can be used to get an error message string 2009-10-26 23:19:09 +00:00
Ryan Schmidt
b28171af6f * Any strings returned by the isValidPassword hook are now shown as error messages instead of MediaWiki thinking that the hook said the password was valid.
* The error message shown in Special:ChangePassword now parses wiki markup
2009-10-26 22:58:39 +00:00
Chad Horohoe
f01eb6c10b (bug 21280) Document Linker.php 2009-10-26 14:25:48 +00:00
Alexandre Emsenhuber
51542a51f4 * (bug 21172) $wgSorbsUrl can now be an array with multiple DNSBL 2009-10-23 18:36:42 +00:00
Alexandre Emsenhuber
d106268c35 * (bug 21255) Fixed hostname construction for DNSBL checking
Based on a patch by Antonio Ospite - http://bug-attachment.wikimedia.org/attachment.cgi?id=6707
2009-10-23 16:44:10 +00:00
Katie Filbert
fce13aeb6b more specific error message, using WikiError, if user trys to create account with hash character 2009-10-22 16:54:50 +00:00
Chad Horohoe
3a463e7d39 Add profiling to getEffectiveGroups() 2009-10-22 12:12:12 +00:00
Roan Kattouw
c7b6a14862 Whitespace cleanup for r57877 2009-10-20 19:48:22 +00:00
Roan Kattouw
8c89e9e5e7 Fix fatal in r57877: can't use $this in a static function 2009-10-20 19:47:20 +00:00
Tim Starling
8b02329fd9 Reintroduced $wgRateLimitsExcludedIPs from r47352 (removed in r51045). $wgAutopromote does not work for anonymous users. 2009-10-19 19:11:56 +00:00
Fenzik Joseph
a9357faf94 * function isValidPassword modified to return boolean(true/false)
* Added function getPasswordValidity return error message on failure for the given unvalidated password input.
* Replaced isValidPassword() fn call to getPasswordValidity() in SpecialUserlogin.php
2009-10-19 03:01:11 +00:00
Aaron Schulz
cb095287f0 * (bug 20595) Don't increment ping value right after setting it the first time (jumping from 0 -> 2)
* Use memc->set() rather than using add(). The later just does an existence check on the current key, which is useless here.
2009-10-12 23:54:48 +00:00
Chad Horohoe
90cecb1e3c Back out the bit of r57558 for allowing lowercased usernames. That needs more testing. 2009-10-09 13:01:16 +00:00
Chad Horohoe
c319cc8968 (bug 13750) $wgCapitalLinks should be a per-namespace setting 2009-10-09 12:52:16 +00:00
Andrew Garrett
0deecb7796 Add new hook, UserIsBlockedFrom, which allows extensions to exempt users from blocks on specific pages. 2009-10-07 14:28:26 +00:00
Brion Vibber
76e4820e02 Cleanup r57359 -- removing PHP4-isms (references not needed to pass objects unless you're going to replace them with different objects as outparams) 2009-10-06 22:14:40 +00:00
Jack Phoenix
fb95ba0b14 redoing r38040: two new hooks for email confirmation/invalidation, both are in User class now so they should work even if email is confirmed through password reset (etc.) 2009-10-04 16:26:43 +00:00
Jack Phoenix
0320dd57a0 coding style tweaks 2009-10-04 13:32:48 +00:00
Aaron Schulz
c2f7ea4d7b * Renamed deletedcontent to deletedtext
* Removed deletedrevision and used deletedhistory/deletedtext instead
2009-09-30 19:50:35 +00:00
Brion Vibber
086f5720f7 Revert r56635 "Implement a 'root' permission, which grants all other permissions. Useful for debugging and administration."
I'd much rather keep permission keys clean and separate.
2009-09-29 23:16:30 +00:00
Siebrand Mazeland
0fa0c61564 Follow-up to r56962: add 'deletedcontent' to $mCoreRights 2009-09-28 06:06:39 +00:00
Aaron Schulz
942a84716a * Split off deletedrevision (view only) right and give it to sysops
* Allow show/hide link on top revision just like history
2009-09-28 03:09:48 +00:00
Aaron Schulz
259e216dea Follow-up r56791: add 'deletedcontent' to corerights 2009-09-28 02:41:51 +00:00
Siebrand Mazeland
e9fe447f05 Fix oversight in r56963: remove $creator 2009-09-26 23:51:33 +00:00
Siebrand Mazeland
bd04456552 Revert r56696. Even though mentioned in r56937 ("Revert broken rewrite of login system"), this revision appears to have been missed.
* leaving the code style changes in User.php in.
2009-09-26 23:47:38 +00:00
Siebrand Mazeland
f854edfe87 New permission 'sendemail' added. Default right for all registered users. Can for example be used to prevent new accounts from sending spam.
* hide some user settings if user is not allowed to send e-mail, but can receive e-mail
* update API 'cannot send e-mail' message
* FIXME: gives 'mailnologin'/'mailnologintext' as error. Error handling should be made more fine grained
2009-09-26 23:11:45 +00:00
Happy-melon
9a4677d35d Follow-up to r56684; fix newuser log. 2009-09-21 10:57:06 +00:00
Happy-melon
5f32a8b265 Implement a 'root' permission, which grants all other permissions. Useful for debugging and administration. 2009-09-19 12:50:00 +00:00
Happy-melon
362d93fea0 Fix User::idFromName to actually return null on failure, as the doc suggests. 2009-09-19 12:46:51 +00:00
Andrew Garrett
3e33e37b37 Fix bug where checking another user's blocked status (like for contributions) would cause you to be autoblocked if that user was blocked. Regression in r56325 2009-09-17 00:56:27 +00:00
Brion Vibber
bb1a41a796 Commit live hack from wmf-deployment r53208: skip user cache invalidation if we're in read-only mode; it's likely to fail and cause more confusion than not doing the invalidation. 2009-09-14 21:28:50 +00:00
Tobias
e6a2eaea64 Fixing User::getBlockedStatus which broke r55918. Function now works for all user objects, not just wgUser 2009-09-14 19:34:18 +00:00
Happy-melon
53671b7d6d Fix fatal left over from preferences rewrite, that no one noticed because this particular function isn't used *anywhere* in core... :D 2009-09-12 21:41:09 +00:00
Aryeh Gregor
d7f090bb12 Enforce $wgMinimalPasswordLength client-side
. . . except not really.  It works fine on Opera 9.6, except for the
slight detail that if you enter a password that's too short, Opera will
helpfully repeat your password back to you un-*ed when telling you it's
too short.  Same in Opera 10.00 Beta 3.  So the code is commented out,
and there are no functional changes.  We'll need UA sniffing when the
code is uncommented.  But I already wrote it, so may as well commit it
for future use.

This recycles the "passwordtooshort" message to provide the client-side
error message, using the title attribute on the input.  Since the title
attribute might be displayed when the user hasn't actually entered an
invalid password, I've reworded it to not imply the user actually
entered an incorrect password, so it just states the requirement.  (This
accords with the advice given in the HTML 5 spec.)  I didn't make up a
new message name for that, because it's not a big deal if translations
do imply that the password is wrong, since that should theoretically be
the most common case anyway.
2009-08-23 03:33:11 +00:00
Chad Horohoe
60c805b761 Revert r35877, early commit that can only be explained by a complete naivete. Nobody ever used this because they weren't idiots. 2009-08-11 21:47:55 +00:00
Brion Vibber
de495fa427 Pull back r54590, r54591, r54628, r54633, r54636, r54714 "Add after the link for "My Talk" "<number of new messages(edits)>" if there are some"
The number of edits doesn't correspond terribly well with "number of messages". Recommend leaving this for future when we actually have sensible message semantics.
2009-08-10 19:03:33 +00:00
Jan Luca Naumann
f6ff314f05 (fixes for r54628) Add PLURAL to "last change" message 2009-08-08 16:02:30 +00:00
Jan Luca Naumann
aca7cbdebe (fixes for r54590 & bug 20103) Use now only one query and add number to messages "youhavenewmessages" and "mytalk" 2009-08-08 10:37:34 +00:00
Andrew Garrett
5e4a0958b4 Move ID-Name cache to a static variable, so it can be added to externally. 2009-08-06 16:23:23 +00:00
Aryeh Gregor
1d1ecfa10f Add experimental new auth framework, ExternalAuth
This should not affect any existing behavior.  (Except that it reorders
some error conditions in attemptAutoCreate(), but probably no one cares
about that.)  It adds a new database table, but it will be unused unless
you enable external authentication.

An outline of the rationale for this system, and the design planning, is
at <http://www.mediawiki.org/wiki/ExternalAuth>.  Essentially,
AuthPlugin puts too much of a burden on plugin authors, requiring them
to write a lot of policy logic instead of just handling the actual
interface to the external user database.  This system uses a standard
framework to decide policy questions, and auth plugins only need to
provide some low-level, clearly-specified data.

There are lots of features still missing, marked in the code, but basic
functionality is present.  The commit includes initial support for one
type of external authentication, the forum software vBulletin (which I
happen to know well, and want to integrate with my MediaWiki).

I'm encouraging the inclusion of ExternalAuth plugins in core because in
this framework, the amount of code required to add an additional backend
is quite small -- well under 100 lines in this case.  I'd hope to see a
lot more of these, and it seems unreasonable to make an armada of tiny
extensions instead of letting them live happily in their own directory
out of everyone's way.
2009-07-19 22:02:00 +00:00
Chad Horohoe
8f11162800 (bug 19157) createAndPromote error on bad password
* Tweak User::isValidPassword() and hook. Return a STRING msg key on failure, not false. Updated all callers to handle this
* Split too-short/match username errors for clarity
* Update docs, messages.
* Merge fix for bug from maintenance-work branch
2009-06-27 16:53:27 +00:00
Andrew Garrett
eb731b3514 Add in-process caching to User::idFromName 2009-06-26 14:28:25 +00:00
Ryan Schmidt
2da101ba2c * Remove the two hooks introduced in r52082
* Remove the unused UserrightsChangeableGroups hook introduced in r39368 (1.14)
* Fix typo in Special:ListGroupRights introduced in r52083
* Prevent duplicate key display in Special:ListGroupRights (new behavior: if a permission is both assigned and revoked from a group, it only displays as revoked).
* Fix $wgRevokePermissions handling, it now runs after every group permission has been assigned in order to revoke the permission properly.
2009-06-18 14:47:18 +00:00