function OnPostback() { # get object $this->user = $this->editor->GetDataObject(); # save data if valid if ($this->IsValid()) { $id = $this->GetAuthenticationManager()->SaveUser($this->user); $this->user->SetId($id); $this->GetAuthenticationManager()->SaveUserSecurity($this->user); $this->Redirect($this->user->GetUserProfileUrl()); } }