mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-05 03:49:38 +00:00
OTP improvements
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from appsettings.settings import app_settings
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.forms import ModelForm, ValidationError
|
||||
from django.forms import EmailField, Form, ModelForm, ValidationError
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .models import UserInstance, UserSSHKey
|
||||
@@ -69,3 +69,7 @@ class UserSSHKeyForm(ModelForm):
|
||||
class Meta:
|
||||
model = UserSSHKey
|
||||
fields = ('keyname', 'keypublic')
|
||||
|
||||
|
||||
class EmailOTPForm(Form):
|
||||
email = EmailField(label=_('Email'))
|
||||
|
||||
Reference in New Issue
Block a user