A plug-and-play Django authentication system with OTP and email verification.
Project description
authentication v1
settings.py
Default redirect URLs (Can be overridden in the main Django project)
AUTH_REDIRECT_SIGNUP = "verify_otp" # After successful signup AUTH_REDIRECT_LOGIN = "dashboard" # After successful login AUTH_REDIRECT_OTP_VERIFIED = "dashboard" # After OTP verification AUTH_REDIRECT_LOGOUT = "login" # After logout
AUTH_EMAIL_SENDER = "support@mywebsite.com"
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "smtp.gmail.com" EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_USER = "your-email@gmail.com" # Your Gmail Address EMAIL_HOST_PASSWORD = "your-app-password" # App Password from Google DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
run migrations
python manage.py makemigrations authentication python manage.py migrate
project urls
from django.contrib import admin from django.urls import path, include
urlpatterns = [ path('accounts/', include('authentication.urls')), # add app urls path("admin/", admin.site.urls), ]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file authentic_django-0.2.tar.gz.
File metadata
- Download URL: authentic_django-0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e8bff3f7044ca4d445cca8a2fe5f929ff3a8f55b2963539ce7f0ca7dc67f357
|
|
| MD5 |
99f32ed0496d76b9fd12bab9b17f3bfd
|
|
| BLAKE2b-256 |
ae653ab57fc78e74889f5e18fa8c7bedf39d91a848ffb71f4579036533cec88d
|
File details
Details for the file authentic_django-0.2-py3-none-any.whl.
File metadata
- Download URL: authentic_django-0.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b039771b3e987e4cb0431b535dda8673f354fb47631772b4e02758da5d78f45e
|
|
| MD5 |
63b2e7c22a8d4458300460c262545bbc
|
|
| BLAKE2b-256 |
9afb8fe6abc3050acccb58582ce5e28f6438b668a2ec3082a958e992b34eb955
|