Mods-for-HESK-Netsyms/internal-api/dao/api_authentication_dao.php

7 lines
296 B
PHP
Raw Normal View History

2015-11-17 22:14:34 -05:00
<?php
function store_token($user_id, $token_hash, $hesk_settings) {
2015-11-19 20:37:49 -05:00
$sql = "INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "user_api_tokens` (`user_id`, `token`)
VALUES ('" . hesk_dbEscape($user_id) . "', '" . hesk_dbEscape($token_hash) . "')";
hesk_dbQuery($sql);
2015-11-17 22:14:34 -05:00
}