Logging out now displays a message
This commit is contained in:
@@ -96,7 +96,16 @@ class Home
|
||||
|
||||
public function logout()
|
||||
{
|
||||
if ($this->access->logout()) {
|
||||
$user = Session::get('userid');
|
||||
$username = Session::get('username');
|
||||
if ($this->access->logout($user)) {
|
||||
Session::flash('info', "$username has logged out");
|
||||
|
||||
Session::delete('userid');
|
||||
Session::delete('username');
|
||||
Session::delete('full_name');
|
||||
Session::delete('privilage');
|
||||
|
||||
Redirect::to('/');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user