kopia lustrzana https://github.com/magicbug/Cloudlog
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 componentpull/302/head
rodzic
ab7593fee2
commit
caf43f2259
|
@ -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) {
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue