Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #127 from Vansers/master
Browse files Browse the repository at this point in the history
Updated Event upon success on login.
  • Loading branch information
nabeelio committed Oct 5, 2014
2 parents de84a56 + 19aa219 commit b59349e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions admin/modules/Maintenance/Maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ public function changepilotid()
{
PilotData::changePilotID($this->post->old_pilotid, $this->post->new_pilotid);

CodonEvent::Dispatch('pilotid_changed', 'Maintenance', array('old_pilotid' => $this->post->old_pilotid, 'new_pilotid' => $this->post->new_pilotid));

$this->set('message', "Pilot ID changed from {$this->post->old_pilotid} to {$this->post->new_pilotid}");
$this->render('core_success.tpl');
}
Expand Down
4 changes: 2 additions & 2 deletions core/modules/Login/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function ProcessLogin()
#$this->set('redir', SITE_URL . '/' . $this->post->redir);
#$this->render('login_complete.tpl');

CodonEvent::Dispatch('login_success', 'Login');
CodonEvent::Dispatch('login_success', 'Login', Auth::$userinfo);

$this->post->redir = str_replace('index.php/', '', $this->post->redir);
header('Location: '.url('/'.$this->post->redir));
Expand All @@ -157,4 +157,4 @@ public function ProcessLogin()
return;
}
}
}
}

0 comments on commit b59349e

Please sign in to comment.