GithubHelp home page GithubHelp logo

valency / deepauth Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 80 KB

Deepera Authentication System

Home Page: https://pypi.org/project/deepauth/

License: GNU General Public License v3.0

Python 100.00%

deepauth's Introduction

Deepera Authentication System

To use captcha, install the following packages:

sudo apt install libz-dev libjpeg-dev libfreetype6-dev python-dev

To install, add deepauth and captcha to INSTALLED_APPS in your Django settings.

Compulsory configurations:

AUTH_USER_MODEL = 'deepauth.Account'
DEEPAUTH_EMAIL_CONF = {
    'required': True,
    'server': 'smtp.example.com',
    'port': 465,
    'username': '[email protected]',
    'password': 'moc.elpmaxe',
    'subject': 'Activate Your Account',
    'content': 'Dear {0},\nPlease verify your account by clicking the following link:\n{1}\nYours sincerely,\nExample.com',
}

Optional configurations:

DEEPAUTH_CAPTCHA_NEED = False
# Whether captcha is required to register or login

DEEPAUTH_INVITATION_ONLY = False
# Invatitation code must be provided if set to true

DEEPAUTH_TOKEN_LIFETIME = 7
# Token will expire in certain days

To enable access, add the following URLs to your URL patterns:

path(r'^auth/', include('deepauth.urls')),
path(r'^captcha/', include('captcha.urls'))

To show docs, add the following code to your URLs:

from rest_framework.documentation import include_docs_urls
urlpatterns = [
    path(r'^docs/', include_docs_urls('API Docs'))
]

deepauth's People

Contributors

deepera-yding avatar valency avatar yiyangyu avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.