Added function for deleting API keys
Added a function to delete API keys in the API model, this will be exposed via the api.php controller with a frontend component
这个提交包含在:
父节点
ab7593fee2
当前提交
caf43f2259
共有 1 个文件被更改,包括 4 次插入 和 0 次删除
|
|
@ -19,6 +19,10 @@ class API_Model extends CI_Model {
|
|||
return $this->db->get('api');
|
||||
}
|
||||
|
||||
function delete_key($key) {
|
||||
$this->db->where('id', $key);
|
||||
$this->db->delete('api');
|
||||
}
|
||||
// Generate API Key
|
||||
function generate_key($rights) {
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用