redirect if you're already logged in.

This commit is contained in:
Evan Prodromou 2011-04-18 10:13:54 -04:00
parent 17adc94df7
commit 3f238e4e16
1 changed files with 7 additions and 0 deletions

View File

@ -164,6 +164,13 @@ class EmailregisterAction extends Action
function handle($argarray=null)
{
$cur = common_current_user();
if (!empty($cur)) {
common_redirect(common_local_url('all', array('nickname' => $cur->nickname)));
return;
}
switch ($this->state) {
case self::NEWREGISTER:
$this->showRegistrationForm();