| 1 |
<?php |
<?php |
| 2 |
// $Id: phpass.module,v 1.1.2.7 2008/05/21 13:49:21 douggreen Exp $ |
// $Id: phpass.module,v 1.1.2.8 2008/06/24 04:12:01 douggreen Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* phpass Module |
* phpass Module |
| 150 |
} |
} |
| 151 |
|
|
| 152 |
// check if the password matches the old md5 hash |
// check if the password matches the old md5 hash |
| 153 |
elseif ($userpass->pass) { |
if ($userpass->pass) { |
| 154 |
if ($userpass->pass == md5($pass)) { |
if ($userpass->pass == md5($pass)) { |
| 155 |
_phpass_save($userpass->uid, $pass); |
_phpass_save($userpass->uid, $pass); |
| 156 |
_phpass_load($userpass); |
_phpass_load($userpass); |