Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.
/ django-nopassword Public archive

Authentication backend for django that uses a one time code instead of passwords

License

Notifications You must be signed in to change notification settings

relekang/django-nopassword

Repository files navigation

django-nopassword

Build Status

Disclaimer: I am writing this to learn more about custom authentication in django. Inspired by Is it time for password-less login? by Ben Brown

Installation

Run this command to install django-nopassword

pip install git+git://github.com/relekang/django-nopassword.git#egg=django-nopassword

Usage

Add the app to installed apps

INSTALLED_APPS = (
    ...
    'django_nopassword',
    ...
)

Set the authentication backend to EmailBackend

AUTHENTICATION_BACKENDS = ( 'django_nopassword.backends.EmailBackend', )

Add urls to your urls.py

urlpatterns = patterns('',
    ...
    url(r'^accounts/', include('django_nopassword.urls')),
    ...
)