diff --git a/public/logout/index.php b/public/logout/index.php new file mode 100644 index 0000000..433c523 --- /dev/null +++ b/public/logout/index.php @@ -0,0 +1,12 @@ + +prepare('DELETE FROM oauth_tokens WHERE cookie = ?'); + $sm->execute([$cookie]); + if ($sm->rowCount() === 1) { + setcookie('rf_sess', null); + } +} + +header('Location: /');