aboutsummaryrefslogtreecommitdiff
path: root/controllers/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/user.php')
-rw-r--r--controllers/user.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/controllers/user.php b/controllers/user.php
index f26103e..78797db 100644
--- a/controllers/user.php
+++ b/controllers/user.php
@@ -7,3 +7,12 @@ function on_get() {
}
catch(Exception $e) {}
}
+
+function on_post() {
+ global $user;
+ try {
+ $headers = apache_request_headers();
+ $user = Database\Cookie::fromDB($headers["Authorization"]);
+ }
+ catch(Exception $e) {}
+}