mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
2FA: Support for adding TOTP-based devices
This commit is contained in:
@@ -102,3 +102,10 @@ class UserSettingsForm(forms.ModelForm):
|
||||
self.instance.set_password(password1)
|
||||
|
||||
return self.cleaned_data
|
||||
|
||||
|
||||
class User2FADeviceAddForm(forms.Form):
|
||||
name = forms.CharField(label=_('Device name'))
|
||||
devicetype = forms.ChoiceField(label=_('Device type'), widget=forms.RadioSelect, choices=(
|
||||
('totp', _('Smartphone with the Authenticator application')),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user