some better breaks on error entry

This commit is contained in:
Evan Prodromou 2011-04-17 18:30:25 -04:00
parent e119b295c0
commit 3996199c6a

View File

@ -200,7 +200,7 @@ class EmailregisterAction extends Action
'<a href="%s">password recovery</a> tool to recover a missing password.'), '<a href="%s">password recovery</a> tool to recover a missing password.'),
common_local_url('recoverpassword')); common_local_url('recoverpassword'));
$this->showRegistrationForm(); $this->showRegistrationForm();
break; return;
} }
$valid = false; $valid = false;
@ -213,6 +213,7 @@ class EmailregisterAction extends Action
if (!$valid) { if (!$valid) {
$this->error = _('Not a valid email address.'); $this->error = _('Not a valid email address.');
$this->showRegistrationForm(); $this->showRegistrationForm();
return;
} }
$confirm = Confirm_address::getAddress($this->email, self::CONFIRMTYPE); $confirm = Confirm_address::getAddress($this->email, self::CONFIRMTYPE);