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

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

src/d/j/django-otp-agents-0.2.0/otp_agents/decorators.py   django-otp-agents(Download)
                _login_url = login_url
                if _login_url is None:
                    _login_url = django_agent_trust.conf.settings.AGENT_LOGIN_URL if accept_trusted_agent else django_otp.conf.settings.OTP_LOGIN_URL
                _decorator = real_otp_required(redirect_field_name=redirect_field_name, login_url=_login_url, if_configured=if_configured)
 

src/d/j/django-otp-0.2.7/django_otp/decorators.py   django-otp(Download)
    """
    if login_url is None:
        login_url = settings.OTP_LOGIN_URL
 
    test = lambda user: user.is_verified() or (if_configured and user.is_authenticated() and not user_has_device(user))