Skip to main content

A Django app to conduct code-based verification.

Project description

Verification is a Django app to conduct code-based verifications. For any verification, email or phone, it can be used.

Detailed documentation is in the “docs” directory.

Quick start

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

  2. Write yuor preferred settings in settings file:

        'VERIFICATIONS': [
            {'type': 'email', 'user_model_field': 'is_email_verified'},],
        'CODE_LENGTH': 6,
        'CONTAINS_NUMERIC': True,
        'LIFE_TIME_SECOND': 0,
        'LIFE_TIME_MINUTE': 3,
        'LIFE_TIME_HOUR': 0,
        'LIFE_TIME_DAY': 0,

2. Inherit from verification.views “BaseGenerateVerificationAPIView” and “BaseVerifyVerificationAPIView” classes.

3. Write your preferred function for sending code and In class that inherits from “BaseGenerateVerificationAPIView” set it to “send_code_function” variable.

  1. Connect your urls to your views.

  2. Run python migrate to create the verification 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

django-rest-verification-0.42.tar.gz (7.6 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