redirect if you're already logged in.
This commit is contained in:
parent
17adc94df7
commit
3f238e4e16
@ -164,6 +164,13 @@ class EmailregisterAction extends Action
|
|||||||
|
|
||||||
function handle($argarray=null)
|
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) {
|
switch ($this->state) {
|
||||||
case self::NEWREGISTER:
|
case self::NEWREGISTER:
|
||||||
$this->showRegistrationForm();
|
$this->showRegistrationForm();
|
||||||
|
Loading…
Reference in New Issue
Block a user