/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function convert($user)
+ {
+ $orig = clone($this);
+ $this->registered_user_id = $user->id;
+ return $this->update($orig);
+ }
}
$user->nickname = $nickname;
+ $invite = null;
+
// Users who respond to invite email have proven their ownership of that address
if (!empty($code)) {
return false;
}
+ // Mark that this invite was converted
+
+ if (!empty($invite)) {
+ $invite->convert($user);
+ }
+
if (!empty($email) && !$user->email) {
$confirm = new Confirm_address();