Changeset 15019 for events/phpframework/piece_framework/trunk/web/frontend/webapp/actions/Account/PasswordAction.php
- Timestamp:
- 07/02/08 00:58:49 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/piece_framework/trunk/web/frontend/webapp/actions/Account/PasswordAction.php
r13959 r15019 13 13 require_once 'Piece/Unity/Service/FlowAction.php'; 14 14 require_once 'Piece/Unity/Service/Runemaster.php'; 15 require_once 'Phwittr/Self.php'; 15 16 require_once 'Phwittr/Account.php'; 16 17 … … 50 51 function entryForm() 51 52 { 52 if (is_null($this->_ userId)) {53 $ user = $this->_context->getSession()->getAttribute('user');54 $this->_ userId = $user->id;53 if (is_null($this->_self)) { 54 $loginUser = $this->_context->getSession()->getAttribute('loginUser'); 55 $this->_self = new Phwittr_Self($loginUser->id); 55 56 } 56 57 } … … 60 61 $master = new Piece_Unity_Service_Runemaster(); 61 62 $master->addForm('AccountPassword', '/account/password'); 63 64 $viewElement = $this->_context->getViewElement(); 65 $viewElement->setElementByRef('self', $this->_self); 62 66 } 63 67 … … 71 75 72 76 try { 73 $account = new Phwittr_Account();74 $account->updatePassword($this->_userId, $formValue->password);75 77 Phwittr_Account::updatePassword($this->_userId, 78 $formValue->password 79 ); 76 80 return 'DisplayForm'; 77 81
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)