/**
  * Store the form's values as this user's password.
  * @param USER $obj
  * @access private
  */
 public function commit($obj)
 {
     $history_item = $obj->new_history_item();
     $obj->set_password($this->value_as_text('password1'));
     $obj->store_if_different($history_item);
     $obj->load_permissions();
     if ($this->login->equals($obj)) {
         $this->app->log_in($obj, $this->value_for('remember'));
     }
 }