var $registered = false;
+ /**
+ * Are we processing an invite?
+ */
+
+ var $invite = null;
+
/**
* Prepare page to run
*
}
if (common_config('site', 'inviteonly') && empty($this->code)) {
- $this->clientError(_('Sorry, only invited people can register.'));
+ $this->clientError(_('Sorry. Only those invited can register.'));
return false;
}
if (!empty($this->code)) {
$this->invite = Invitation::staticGet('code', $this->code);
if (empty($this->invite)) {
- $this->clientError(_('Sorry, invalid invitation code.'));
+ $this->clientError(_('Sorry. This is an invalid invitation code.'));
return false;
}
// Store this in case we need it
$bio = $this->trimmed('bio');
$location = $this->trimmed('location');
- // We don't trim these... whitespace is OK in a password!
+ // We do not trim these... whitespace is OK in a password!
$password = $this->arg('password');
$confirm = $this->arg('confirm');
}
if (common_config('site', 'inviteonly') && !($code && $invite)) {
- $this->clientError(_('Sorry, only invited people can register.'));
+ $this->clientError(_('Sorry. Only those invited can register.'));
return;
}
if (!$this->boolean('license')) {
$this->showForm(_('You can\'t register if you don\'t '.
'agree to the license.'));
- } else if ($email && !Validate::email($email, true)) {
+ } else if ($email && !Validate::email($email, common_config('email', 'check_domain'))) {
$this->showForm(_('Not a valid email address.'));
} else if (!Validate::string($nickname, array('min_length' => 1,
'max_length' => 64,
}
if (common_config('site', 'inviteonly') && !($code && $invite)) {
- $this->clientError(_('Sorry, only invited people can register.'));
+ $this->clientError(_('Sorry. Only those invited can register.'));
return;
}
'(%%%%action.imsettings%%%%) '.
'so you can send notices '.
'through instant messages.' . "\n" .
- '* [Search for people](%%%%action.peoplesearch%%%%) '.
+ '* [Search for users](%%%%action.peoplesearch%%%%) '.
'that you may know or '.
'that share your interests. ' . "\n" .
'* Update your [profile settings]'.