added abbility to enable/disable login for ftp users; fixes #1146

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-07-24 15:23:15 +02:00
parent 8d66a4aec4
commit 6d42968d1a
6 changed files with 54 additions and 6 deletions

View File

@@ -79,7 +79,13 @@ return [
'type' => 'select',
'select_var' => $shells,
'selected' => '/bin/false'
]
],
'login_enabled' => [
'label' => lng('panel.active'),
'type' => 'checkbox',
'value' => '1',
'checked' => true
],
]
]
]

View File

@@ -65,7 +65,13 @@ return [
'type' => 'select',
'select_var' => $shells,
'selected' => $result['shell'] ?? '/bin/false'
]
],
'login_enabled' => [
'label' => lng('panel.active'),
'type' => 'checkbox',
'value' => '1',
'checked' => $result['login_enabled'] == 'Y',
],
]
]
]