r36208 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36207‎ | r36208 | r36209 >
Date:22:20, 11 June 2008
Author:catrope
Status:old
Tags:
Comment:
Re-add wfEncryptPassword() (removed in r35923 in favor of User::crypt() and User::oldCrypt()) for extension compatibility, so old extensions don't go around and throw fatal errors all over the place.
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -1802,6 +1802,20 @@
18031803 }
18041804
18051805 /**
 1806+ * Encrypt a username/password.
 1807+ *
 1808+ * @param string $userid ID of the user
 1809+ * @param string $password Password of the user
 1810+ * @return string Hashed password
 1811+ * @deprecated Use User::crypt() or User::oldCrypt() instead
 1812+ */
 1813+function wfEncryptPassword( $userid, $password ) {
 1814+ wfDeprecated(__FUNCTION__);
 1815+ # Just wrap around User::oldCrypt()
 1816+ return User::oldCrypt($password, $userid);
 1817+}
 1818+
 1819+/**
18061820 * Appends to second array if $value differs from that in $default
18071821 */
18081822 function wfAppendToArrayIfNotDefault( $key, $value, $default, &$changed ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r35923* Changed password hash format, see wikitech-l...tstarling12:58, 5 June 2008

Status & tagging log