Skip to content
Permalink
Browse files

Fixes sql constraint issue with user signup form

  • Loading branch information...
CorWatts committed May 6, 2019
1 parent dda5a0b commit 2d250be326ab3e7dab4ac7979e9c8dd7f68b54ad
Showing with 5 additions and 1 deletion.
  1. +5 −1 site/models/SignupForm.php
@@ -14,7 +14,7 @@ class SignupForm extends Model
public $password;
public $timezone = "America/Los_Angeles"; // default
public $captcha;
public $send_email;
public $send_email = false;
public $email_category = 4; // default to "Speeding Up"
public $partner_email1;
public $partner_email2;
@@ -132,11 +132,15 @@ public function setFields($user) {
$user->generateVerifyEmailToken();
if($user->send_email) {
$user->send_email = true;
$user->email_category = $this->email_category;
$user->partner_email1 = $this->partner_email1;
$user->partner_email2 = $this->partner_email2;
$user->partner_email3 = $this->partner_email3;
} else {
$user->send_email = false;
}
return $user;
}
}

0 comments on commit 2d250be

Please sign in to comment.
You can’t perform that action at this time.