check members of sudo

This commit is contained in:
Ben Harris 2018-07-08 15:52:54 -04:00
parent 0763e2b6c7
commit bed6cd104d
1 changed files with 1 additions and 1 deletions

View File

@ -24,6 +24,6 @@ $auth = authenticate($_POST['user'], $_POST['pw']);
echo json_encode([
"authenticated" => $auth,
"sudoer" => $auth && in_array($_POST["user"], posix_getgrnam("admin")["members"])
"sudoer" => $auth && in_array($_POST["user"], posix_getgrnam("sudo")["members"])
]);