Changeset 107 for devel/www/user.php
- Timestamp:
- Sep 14, 2008, 5:54:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/www/user.php
r101 r107 91 91 else 92 92 { 93 $this->Database->insert('User', array('Name' => $Nick, 'FirstName' => $FirstName, 'SecondName' => $SecondName, 'Password' => sha1($Password), 'Email' => $Email, 'RegistrationTime' => 'NOW()' ));93 $this->Database->insert('User', array('Name' => $Nick, 'FirstName' => $FirstName, 'SecondName' => $SecondName, 'Password' => sha1($Password), 'Email' => $Email, 'RegistrationTime' => 'NOW()', 'Locked' => 1)); 94 94 $UserId = $this->Database->insert_id; 95 95 … … 251 251 if(($NewPassword == $NewPassword2) and ($Hash == $Row['Password'])) 252 252 { 253 $this->Database->update('User', 'Id='.$Row['Id'], array('Password' => sha1($NewPassword) ));253 $this->Database->update('User', 'Id='.$Row['Id'], array('Password' => sha1($NewPassword), 'Locked' => 0)); 254 254 $Output = USER_PASSWORD_RECOVERY_CONFIRMED; 255 255 $this->System->Modules['Log']->NewRecord('User', 'PasswordRecoveryConfirm', 'Username='.$Row['Name']);
Note:
See TracChangeset
for help on using the changeset viewer.