$this->user->email = $this->confirm->address;
- $this->user->updateKeys($orig);
+ // Throws exception on failure.
+ $this->user->updateWithKeys($orig);
$this->user->emailChanged();
$orig = clone($this->user);
- $this->user->password = common_munge_password($this->password, $this->user->id);
+ $this->user->password = common_munge_password($this->password, $this->user->getProfile());
$this->user->update($orig);