Skip to main content

A Django app for otp model.

Project description

Contains otp model

Detailed documentation is in the “docs” directory.

Quick start

  1. Add “otp” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'otp',
    ]
  2. In settings.py add

    # Time after which new OTP can be requested after exceeding max incorrect attempts OTP_BLOCK_WINDOW_MIN = int(os.environ.get(‘OTP_BLOCK_WINDOW_MIN’, 15)) # Or add your own time

    # max wrong attempts allowed for an otp OTP_REMAINING_ATTEMPTS = int(os.environ.get(‘OTP_REMAINING_ATTEMPTS’, 5)) # Or add your attempts

  3. Run python manage.py migrate to create the otp models.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

incore-otp-1.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page