mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
27 lines
603 B
PHP
Executable File
27 lines
603 B
PHP
Executable File
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
/* crmv@91082 */
|
|
|
|
require_once('modules/Users/LoginHistory.php');
|
|
|
|
class TouchLogout extends TouchWSClass {
|
|
|
|
|
|
function process(&$request) {
|
|
global $touchInst, $current_user;
|
|
|
|
// crmv@91082 - login history
|
|
$loghistory = LoginHistory::getInstance();
|
|
$loghistory->user_logout($current_user->user_name);
|
|
// crmv@91082e
|
|
|
|
$touchInst->destroyWSSession();
|
|
|
|
return $this->success();
|
|
}
|
|
|
|
}
|