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

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/i/d/identity.gentoo.org-HEAD/okupy/accounts/views.py   identity.gentoo.org(Download)
            if not dev:
                raise OkupyError('OTP verification failed')
            django_otp.login(request, dev)
        else:
            login_form = login_form_class(request.POST)

src/i/d/identity.gentoo.org-HEAD/okupy/otp/__init__.py   identity.gentoo.org(Download)
# vim:fileencoding=utf8:et:ts=4:sts=4:sw=4:ft=python
 
from django.db import IntegrityError
from django_otp import login as otp_login
from django_otp.middleware import OTPMiddleware
    # if OTP is disabled, it will match already
    if tdev.verify_token():
        otp_login(request, tdev)
 
    # add .is_verified()

src/d/j/django-two-factor-auth-HEAD/two_factor/views/core.py   django-two-factor-auth(Download)
            raise NotImplementedError("Unknown method '%s'" % self.get_method())
 
        django_otp.login(self.request, device)
        return redirect(self.redirect_url)