Changeset 18890 for trunk/include/functions_user.inc.php
- Timestamp:
- Nov 2, 2012, 3:39:01 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_user.inc.php
r18889 r18890 1134 1134 global $conf, $pwg_hasher; 1135 1135 1136 // If the hash is still md5... 1137 if (strlen($hash) <= 32) 1138 { 1139 $check = ($hash == md5($password)); 1136 // If the password has not been hashed with the current algorithm. 1137 if (strpos('$P', $hash) !== 0) 1138 { 1139 if (!empty($conf['pass_convert'])) 1140 { 1141 $check = ($hash == $conf['pass_convert']($password)); 1142 } 1143 else 1144 { 1145 $check = ($hash == md5($password)); 1146 } 1140 1147 1141 1148 if ($check and isset($user_id) and !$conf['external_authentification'])
Note: See TracChangeset
for help on using the changeset viewer.