modules/otp.php 1 location
|
@@ 264-271 (lines=8) @@
|
| 261 |
|
* |
| 262 |
|
* @return void |
| 263 |
|
*/ |
| 264 |
|
public function delete($key) |
| 265 |
|
{ |
| 266 |
|
$sql = 'DELETE FROM ' . $this->otp_registration_table . ' |
| 267 |
|
WHERE user_id = ' . (int) $this->user->data['user_id'] . ' |
| 268 |
|
AND registration_id =' . (int) $key; |
| 269 |
|
|
| 270 |
|
$this->db->sql_query($sql); |
| 271 |
|
} |
| 272 |
|
} |
| 273 |
|
|
modules/u2f.php 1 location
|
@@ 359-366 (lines=8) @@
|
| 356 |
|
* @param int $key |
| 357 |
|
* @return void |
| 358 |
|
*/ |
| 359 |
|
public function delete($key) |
| 360 |
|
{ |
| 361 |
|
$sql = 'DELETE FROM ' . $this->registration_table . ' |
| 362 |
|
WHERE user_id = ' . (int) $this->user->data['user_id'] . ' |
| 363 |
|
AND registration_id =' . (int) $key; |
| 364 |
|
|
| 365 |
|
$this->db->sql_query($sql); |
| 366 |
|
} |
| 367 |
|
|
| 368 |
|
/** |
| 369 |
|
* If this module can add new keys (Or other things) |