Changeset 11826 for trunk/include/functions_user.inc.php
- Timestamp:
- Jul 25, 2011, 7:56:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_user.inc.php
r11753 r11826 1033 1033 $row = pwg_db_fetch_assoc($result); 1034 1034 $username = stripslashes($row['username']); 1035 $data = $time.stripslashes($row['username']).$row['password']; 1036 $key = base64_encode( 1037 pack('H*', sha1($data)) 1038 .hash_hmac('md5', $data, $conf['secret_key'],true) 1039 ); 1035 $data = $time.$user_id.$username; 1036 $key = base64_encode( hash_hmac('sha1', $data, $conf['secret_key'].$row['password'],true) ); 1040 1037 return $key; 1041 1038 }
Note: See TracChangeset
for help on using the changeset viewer.