Clean up e-mail authentication code.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 25 Apr 2005 18:38:43 +0000 (18:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 25 Apr 2005 18:38:43 +0000 (18:38 +0000)
commitaed4a04076a27de87953dd766fdd34b8dd0213d0
tree2dfdb5977630306f0fea637c2b29dad9d44adc24
parentf12f73ac699750cf5bc0ff670d2dbe3f59a7e63e
Clean up e-mail authentication code.
* Add Special:Confirmemail unlisted page for requesting confirmation emails and as the destination
* There is now a confirmation token separate from the login password, which is cleaner and hopefully a lot less confusing.
* Confirmation token expires after 7 days
* Added support functions for nullable timestamp columns: wfTimestampOrNull and Database::timestampOrNull
* userMailer now returns WikiError objects
* Added convenience functions to User for email management, consolidated some checks

There are changes to the user table, so run update.php
15 files changed:
includes/Database.php
includes/GlobalFunctions.php
includes/SpecialConfirmemail.php [new file with mode: 0644]
includes/SpecialEmailuser.php
includes/SpecialPage.php
includes/SpecialPreferences.php
includes/SpecialUserlogin.php
includes/User.php
includes/UserMailer.php
includes/templates/Confirmemail.php [new file with mode: 0644]
includes/templates/Userlogin.php
languages/Language.php
maintenance/archives/patch-email-authentication.sql
maintenance/archives/patch-user_email_token.sql [new file with mode: 0644]
maintenance/updaters.inc