Changeset 22 for trunk/Base/User.php
- Timestamp:
- Mar 1, 2010, 9:12:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Base/User.php
r16 r22 33 33 { 34 34 $DbResult = $this->System->Database->select('User', 'Id', 'Name="'.$Name. 35 '" AND Password=SHA1(CONCAT( "'.$Password.'", Salt))');35 '" AND Password=SHA1(CONCAT(SHA1("'.$Password.'"), Salt))'); 36 36 if($DbResult->num_rows > 0) 37 37 { … … 46 46 $Salt = GetPasswordSalt(); 47 47 $this->System->Database->insert('User', array('Name' => '"'.$Name.'"', 48 'Salt' => '"'.$Salt.'"', 'Password' => 'SHA1(CONCAT( "'.$Password.'", "'.$Salt.'"))',48 'Salt' => '"'.$Salt.'"', 'Password' => 'SHA1(CONCAT(SHA1("'.$Password.'"), "'.$Salt.'"))', 49 49 'Email' => '"'.$Email.'"', 'RegistrationTime' => 'NOW()')); 50 50 }
Note:
See TracChangeset
for help on using the changeset viewer.