enthusiastmartin / django-emailauth

custom user with email authentication.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-emailauth

Django - custom user model with email authentication.

Note : still in development - although ready to use.

Documentation

To do ...

Installation

To get the latest commit from GitHub

pip install -e git+git://github.com/enthusiastmartin/django-emailauth.git#egg=djangoemailauth

[Optional] Add djangoemailauth to your INSTALLED_APPS. This is necessary only if built-in EmailUser is used ( see Usage below for details )

INSTALLED_APPS = (
    ...,
    'djangoemailauth',
)

Usage

EmailUser

Make sure to add djangoemailauth to installed apps.

Update settings.py to tell Django to use MyUser

AUTH_USER_MODEL = 'djangoemailauth.EmailUser'

AbstractEmailUser

from djangoemailauth.models import AbstractEmailUser

class MyUser(AbstractEmailUser):
     ** extend User model with your attributes **

Update settings.py to tell Django to use MyUser

AUTH_USER_MODEL = '<your module>.MyUser'

About

custom user with email authentication.

License:MIT License


Languages

Language:Python 99.8%Language:HTML 0.2%