Changeset 495 for trunk/includes/user.php
- Timestamp:
- Jan 27, 2013, 7:42:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/user.php
r454 r495 31 31 function Login($Name, $Password) 32 32 { 33 $DbResult = $this->System->Database->query('SELECT `ID` FROM `User` WHERE LOWER(`Name`) = LOWER("'.$Name.'") AND `Pass` = '.$this->CryptPasswordSQL('"'.$Password.'"', '`Salt`')); 33 $DbResult = $this->System->Database->query('SELECT `ID` FROM `User` WHERE '. 34 'LOWER(`Name`) = LOWER("'.$Name.'") AND `Pass` = '.$this->CryptPasswordSQL('"'.$Password.'"', '`Salt`')); 34 35 if($DbResult->num_rows > 0) 35 36 { … … 105 106 function CryptPasswordSQL($Password, $Salt) 106 107 { 107 return(' sha1(CONCAT(sha1('.$Password.'), '.$Salt.'))');108 return('SHA1(CONCAT(SHA1('.$Password.'), '.$Salt.'))'); 108 109 } 109 110
Note:
See TracChangeset
for help on using the changeset viewer.