public function ResetPassword() { $salt = $this->passwordEncryption->Salt(); $encryptedPassword = $this->passwordEncryption->Encrypt($this->page->GetPassword(), $salt); $user = $this->userRepository->LoadById($this->page->GetUserId()); $user->ChangePassword($encryptedPassword, $salt); $this->userRepository->Update($user); }