mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-15 00:27:01 +02:00
use email instead of username in the online table
This commit is contained in:
@ -11,6 +11,7 @@ class ControllerLoginLogout extends Controller {
|
||||
$this->layout = "common/layout-empty";
|
||||
|
||||
$request = Registry::get('request');
|
||||
$session = Registry::get('session');
|
||||
|
||||
$db = Registry::get('db');
|
||||
|
||||
@ -21,7 +22,7 @@ class ControllerLoginLogout extends Controller {
|
||||
|
||||
if(ENABLE_SAAS == 1) {
|
||||
$this->load->model('saas/customer');
|
||||
$this->model_saas_customer->offline(Registry::get('username'));
|
||||
$this->model_saas_customer->offline($session->get('email'));
|
||||
}
|
||||
|
||||
logout();
|
||||
|
Reference in New Issue
Block a user