Show
Ignore:
Timestamp:
07/04/08 01:30:16 (5 months ago)
Author:
kumatch
Message:

Adjusted the change of authenticated user (self) object.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/piece_framework/trunk/web/frontend/webapp/actions/Account/PasswordAction.php

    r15019 r15136  
    5252    { 
    5353        if (is_null($this->_self)) { 
    54             $loginUser = $this->_context->getSession()->getAttribute('loginUser'); 
    55             $this->_self = new Phwittr_Self($loginUser->id); 
     54            $this->_self = $this->_context->getAttribute('self'); 
    5655        } 
    5756    } 
     
    6160        $master = new Piece_Unity_Service_Runemaster(); 
    6261        $master->addForm('AccountPassword', '/account/password'); 
    63  
    64         $viewElement = $this->_context->getViewElement(); 
    65         $viewElement->setElementByRef('self', $this->_self); 
    6662    } 
    6763 
     
    7571 
    7672        try { 
    77             Phwittr_Account::updatePassword($this->_userId, 
     73            Phwittr_Account::updatePassword($this->_self->id, 
    7874                                            $formValue->password 
    7975                                            ); 
     76 
    8077            return 'DisplayForm'; 
    8178