Fix problem with new password salt code.
authorLee Daniel Crocker <lcrocker@users.mediawiki.org>
Mon, 28 Apr 2003 17:19:51 +0000 (17:19 +0000)
committerLee Daniel Crocker <lcrocker@users.mediawiki.org>
Mon, 28 Apr 2003 17:19:51 +0000 (17:19 +0000)
includes/User.php
languages/Language.php

index 45c60a2..bfc369a 100644 (file)
@@ -163,7 +163,7 @@ class User {
                        $passwordCorrect = $wsUserPassword == $this->mPassword;
                } else if ( isset( $HTTP_COOKIE_VARS["wcUserPassword"] ) ) {
                        $this->mCookiePassword = $HTTP_COOKIE_VARS["wcUserPassword"];
-                       $wsUserPassword = $this->addSalt($this->mCookiePassword);
+                       $wsUserPassword = User::addSalt($this->mCookiePassword);
                        $passwordCorrect = $wsUserPassword == $this->mPassword;
                } else {
                        $this->mId = 0;
@@ -284,14 +284,14 @@ class User {
 
        function encryptPassword( $p )
        {
-               return $this->addSalt( md5( $p ) );
+               return User::addSalt( md5( $p ) );
        }
 
        function setPassword( $str )
        {
                $this->loadFromDatabase();
                $this->setCookiePassword( $str );
-               $this->mPassword = $this->encryptPassword( $str );
+               $this->mPassword = User::encryptPassword( $str );
                $this->mNewpassword = "";
        }
 
@@ -304,7 +304,7 @@ class User {
        function setNewpassword( $str )
        {
                $this->loadFromDatabase();
-               $this->mNewpassword = $this->encryptPassword( $str );
+               $this->mNewpassword = User::encryptPassword( $str );
        }
 
        function getEmail()
index 6a99ed7..b147d4e 100644 (file)
@@ -1309,6 +1309,6 @@ class Language {
 }
 
 global $IP;
-@include_once( "$IP/Language" . ucfirst( $wgLanguageCode ) . ".php" );
+@include_once( "{$IP}/Language" . ucfirst( $wgLanguageCode ) . ".php" );
 
 ?>