mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ssh: Add checkbox to remove login group restrictions
Tests: - Disable the checkbox. Non-admin user who is not part freedombox-ssh group fails to login. Admin user can login. - Enable the checkbox and both non-admin user and admin user can login via SSH. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
21c8a8945f
commit
c20f640641
2 files changed
+18
No files matched your search
@@ -16,3 +16,11 @@ class SSHServerForm(forms.Form):
|
||||
'administrator user account before enabling this option.'),
|
||||
required=False,
|
||||
)
|
||||
|
||||
allow_all = forms.BooleanField(
|
||||
label=_('Allow all users to login remotely'),
|
||||
help_text=_('Allow all users who have a valid account to login '
|
||||
'remotely via SSH. When disabled, only users of groups '
|
||||
'root, admin and freedombox-ssh can login via SSH.'),
|
||||
required=False,
|
||||
)
|
||||
Reference in new issue
Block a user