Changeset 223
- Timestamp:
- 12/09/07 01:50:27 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Framework/Module/Accounts/Modify.php
r220 r223 168 168 169 169 // update password / comment if it's changing 170 $changeArray = array(); 171 $password = $form->getElementValue('password'); 172 $comment = $form->getElementValue('comment'); 170 $changePass = 0; 171 $changeComment = 0; 172 $password = $form->getElementValue('password'); 173 $comment = $form->getElementValue('comment'); 173 174 if (!empty($password)) { 174 $changeArray['clear_text_password'] = $password; 175 $account_info['clear_text_password'] = $password; 176 $changePass = 1; 175 177 } 176 178 if (!empty($comment)) { 177 $changeArray['comment'] = $comment; 178 } 179 if (!empty($changeArray)) { 180 $this->user->modUser($this->domain, $_REQUEST['account'], $changeArray); 181 } 182 if (isset($changeArray['clear_text_password']) 183 && $account == $this->user->loginUser['name'] 184 && $this->domain == $this->user->loginUser['domain']) { 179 $account_info['comment'] = $comment; 180 } 181 if ($changePass || $changeComment) { 182 $this->user->modUser($this->domain, $_REQUEST['account'], $account_info); 183 } 184 if (isset($changePass) && $account == $this->user->loginUser['name'] 185 && $this->domain == $this->user->loginUser['domain']) { 185 186 $crypt = new Crypt_Blowfish((string)Framework::$site->config->mcryptKey); 186 $this->session->password = $crypt->encrypt($ changeArray['clear_text_password']);187 $this->session->password = $crypt->encrypt($password); 187 188 } 188 189 trunk/Framework/Module/Accounts/Templates/Default/modifyAccount.tpl
r79 r223 73 73 </form> 74 74 75 {if $isDomainAdmin}<a href="./?module=Domains& event=domainMenu&domain={$domain}"><br /><b>{$LANG_Main_Menu}</b>{/if}75 {if $isDomainAdmin}<a href="./?module=Domains&class=Menu&domain={$domain}"><br /><b>{$LANG_Main_Menu}</b>{/if} 76 76 77 77 </div>
