set a uid for the user at login for ftp filtering
This commit is contained in:
parent
372b00101d
commit
ae30498030
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue