Changeset 13135
- Timestamp:
- 11/03/09 05:17:13 (3 weeks ago)
- Files:
-
- trunk/flash/modules/desktop/inc/actions.inc.php (modified) (1 diff)
- trunk/flash/modules/desktop/inc/customFunctions.inc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/flash/modules/desktop/inc/actions.inc.php
r12960 r13135 91 91 case 'login': 92 92 $sContents = parseXml($aXmlTemplates['result'], "msgUserAuthenticationFailure", FAILED_VAL); 93 $sPassword = encryptPassword($sPassword); 93 $sId = getIdByNick($sNick); 94 $sPassword = encryptPassword($sId, $sPassword); 94 95 if(loginUser($sNick, $sPassword, true) == TRUE_VAL) 95 96 { 96 $sId = getIdByNick($sNick);97 97 $aUserInfo = getUserInfo($sId); 98 98 login($sId, $sPassword); trunk/flash/modules/desktop/inc/customFunctions.inc.php
r12950 r13135 79 79 } 80 80 81 function encryptPassword($sPassword) 82 { 83 return md5($sPassword); 81 function encryptPassword($sId, $sPassword) 82 { 83 $aUser = getProfileInfo($sId); 84 return encryptUserPwd($sPassword, $aUser['Salt']); 84 85 } 85 86

