mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/nginx: PHP compat
PR: https://www.reddit.com/r/opnsense/comments/wa6xil/comment/iifo8oe/?context=3
This commit is contained in:
@@ -228,7 +228,7 @@ foreach ($nginx->userlist->iterateItems() as $user_list) {
|
||||
foreach ($users as $user) {
|
||||
$user_node = $nginx->getNodeByReference("credential." . $user);
|
||||
$username = (string)$user_node->username;
|
||||
$password = crypt((string)$user_node->password);
|
||||
$password = crypt((string)$user_node->password, '$6$');
|
||||
fwrite($file, $username . ':' . $password . "\n");
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user