Sunil Mohan Adapa 9368504da5
*.py: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:38:55 +02:00

21 lines
644 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
"""
FreedomBox configuration form for OpenSSH server.
"""
from django import forms
from django.utils.translation import ugettext_lazy as _
from plinth.forms import AppForm
class SSHServerForm(AppForm):
"""SSH server configuration form."""
password_auth_disabled = forms.BooleanField(
label=_('Disable password authentication'),
help_text=_('Improves security by preventing password guessing. '
'Ensure that you have setup SSH keys in your '
'administrator user account before enabling this option.'),
required=False,
)