original_string: public function myaccount_onSave()
      {
          $result = $this->asExtension('FormController')->update_onSave($this->user->id, 'myaccount');
  
          /*
           * If the password or login name has been updated, reauthenticate the user
           */
          $loginChanged = $this->user->login != post('User[login]');
          $passwordChanged = strlen(post('User[password]'));
          if ($loginChanged || $passwordChanged) {
              BackendAuth::login($this->user->reload(), true);
          }
  
          return $result;
      }
code: public function myaccount_onSave()
      {
          $result = $this->asExtension('FormController')->update_onSave($this->user->id, 'myaccount');
  
          /*
           * If the password or login name has been updated, reauthenticate the user
           */
          $loginChanged = $this->user->login != post('User[login]');
          $passwordChanged = strlen(post('User[password]'));
          if ($loginChanged || $passwordChanged) {
              BackendAuth::login($this->user->reload(), true);
          }
  
          return $result;
      }
code_tokens: public function myaccount_onSave ( ) { $ result = $ this -> asExtension ( 'FormController' ) -> update_onSave ( $ this -> user -> id , 'myaccount' ) ; /*
           * If the password or login name has been updated, reauthenticate the user
           */ $ loginChanged = $ this -> user -> login != post ( 'User[login]' ) ; $ passwordChanged = strlen ( post ( 'User[password]' ) ) ; if ( $ loginChanged || $ passwordChanged ) { BackendAuth :: login ( $ this -> user -> reload ( ) , true ) ; } return $ result ; }
docstring: Proxy update onSave event
docstring_tokens: Proxy update onSave event