Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(2)  |  Import(2)

src/d/j/django-two-factor-auth-0.5.0/two_factor/forms.py   django-two-factor-auth(Download)
from django.forms import ModelForm, Form
from django.utils.translation import ugettext_lazy as _
from django_otp.forms import OTPAuthenticationFormMixin
from django_otp.oath import totp
from django_otp.plugins.otp_totp.models import TOTPDevice
class AuthenticationTokenForm(OTPAuthenticationFormMixin, Form):
    otp_token = forms.IntegerField(label=_("Token"), min_value=1, max_value=999999)
 
    def __init__(self, user, **kwargs):
        super(AuthenticationTokenForm, self).__init__(**kwargs)

src/d/j/django-two-factor-auth-HEAD/two_factor/forms.py   django-two-factor-auth(Download)
from django.utils.translation import ugettext_lazy as _
 
from django_otp.forms import OTPAuthenticationFormMixin
from django_otp.oath import totp
from django_otp.plugins.otp_totp.models import TOTPDevice
class AuthenticationTokenForm(OTPAuthenticationFormMixin, Form):
    otp_token = forms.IntegerField(label=_("Token"), min_value=1, max_value=999999)
 
    def __init__(self, user, initial_device, **kwargs):
        """