diff options
-rw-r--r-- | app/index.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/index.php b/app/index.php index 177cb1b..e883eff 100644 --- a/app/index.php +++ b/app/index.php @@ -49,6 +49,15 @@ function main(array $argv) : void return; } + switch ($argv[0]) + { + case "logout": + /* logout user */ + user::setCurrent(); + location("/"); + break; + } + /* TODO */ echo "logged in"; } |