aboutsummaryrefslogtreecommitdiffstats
path: root/php/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/login.php')
-rw-r--r--php/login.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/php/login.php b/php/login.php
index 536a5bf..c26445e 100644
--- a/php/login.php
+++ b/php/login.php
@@ -21,6 +21,8 @@ if(!$user)
}
$_SESSION['username'] = $user->username;
+$_SESSION['user_object'] = $user;
+
header('Location: /');
?>