Changeset 484 for trunk/Modules/Portal/Portal.php
- Timestamp:
- Feb 10, 2013, 11:31:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Portal/Portal.php
r479 r484 179 179 $UserOptions = new Form('UserOptions', array()); 180 180 $UserOptions->LoadValuesFromForm(); 181 if($UserOptions->Values['Password'] == '') unset($UserOptions->Values['Password']);182 else {183 $PasswordHash = new PasswordHash();184 $Salt = $PasswordHash->GetSalt();185 $UserOptions->Values['Password'] = $PasswordHash->Hash($UserOptions->Values['Password'], $Salt);186 $UserOptions->Values['Salt'] = $Salt;187 $this->Database->update('User', 'Id='.$this->System->Modules['User']->User['Id'], array('Salt' => $Salt));188 }189 181 $UserOptions->SaveValuesToDatabase($this->System->Modules['User']->User['Id']); 190 182 $Output .= $this->SystemMessage('Nastavení', 'Nastavení uloženo.');
Note:
See TracChangeset
for help on using the changeset viewer.