diff --git a/inc/auth.php b/inc/auth.php index 4f709d9..4e55b2d 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -20,6 +20,7 @@ if ((empty($_GET['form']) || $_GET['form']!=1) && !empty($_POST)) { if (hash("sha256",$password) == $conf['logins'][$username]) { $_SESSION['auth']=1; $_SESSION['user']=$username; + $_SESSION['user_id'] = posix_getpwnam($username) ? posix_getpwnam($username)['uid'] : 65534; $_SESSION['error']=''; } else { $_SESSION['auth']=0;