diff options
author | Malf Furious <m@lfurio.us> | 2018-07-19 02:55:04 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-07-19 02:55:04 -0400 |
commit | 57b9b6afe8f3e7d87b327b68861be2011e0d69ee (patch) | |
tree | 1335351c857471627b35422d69df2c358289efe6 /app/index.php | |
parent | 36a565c0713a68c758768190d3d336873611775b (diff) | |
download | scrott-57b9b6afe8f3e7d87b327b68861be2011e0d69ee.tar.gz scrott-57b9b6afe8f3e7d87b327b68861be2011e0d69ee.zip |
Define /logout route
Diffstat (limited to '')
-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"; } |