Fix unclear labels and validations

This commit is contained in:
Raphael Michel
2017-03-30 23:34:28 +02:00
parent 67e5ecb931
commit 91c48c50e5
5 changed files with 6 additions and 6 deletions

View File

@@ -104,7 +104,7 @@ class UserSettingsForm(forms.ModelForm):
class User2FADeviceAddForm(forms.Form):
name = forms.CharField(label=_('Device name'))
name = forms.CharField(label=_('Device name'), max_length=64)
devicetype = forms.ChoiceField(label=_('Device type'), widget=forms.RadioSelect, choices=(
('totp', _('Smartphone with the Authenticator application')),
('u2f', _('U2F-compatible hardware token (e.g. Yubikey)')),