Index: trunk/extensions/auth/GlobalAuth.php |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | $fname ); |
95 | 95 | while ( $row = $dbr->fetchObject( $res ) ) { |
96 | 96 | if ( $row->user_wiki == $this->thiswiki || $row->user_wiki == '*' ) { |
97 | | - if ( $row->user_password == wfEncryptPassword( $row->user_id, $password ) ) { |
| 97 | + if ( $row->user_password == User::oldCrypt( $password, $row->user_id ) ) { |
98 | 98 | $this->data =& $row; |
99 | 99 | return true; |
100 | 100 | } |
— | — | @@ -153,7 +153,7 @@ |
154 | 154 | function setPassword( $password ) { |
155 | 155 | $dbw = wfGetDB( DB_MASTER ); |
156 | 156 | $success = $dbw->update( $this->tablename, |
157 | | - array( 'user_password' => wfEncryptPassword( $this->data->user_id, $password ) ), |
| 157 | + array( 'user_password' => User::oldCrypt( $password, $this->data->user_id ) ), |
158 | 158 | array( 'user_id' => $this->data->user_id, |
159 | 159 | 'user_wiki' => $this->data->user_wiki ), |
160 | 160 | 'GlobalAuth::setPassword' ); |
— | — | @@ -226,7 +226,7 @@ |
227 | 227 | return false; |
228 | 228 | # The password matches one of the already existing accounts. |
229 | 229 | # Allow creation of an account. |
230 | | - if ( $row->user_password == wfEncryptPassword( $row->user_id, $password ) ) { |
| 230 | + if ( $row->user_password == User::oldCrypt( $password, $row->user_id ) ) { |
231 | 231 | $create = true; |
232 | 232 | } |
233 | 233 | } |