Authentication backend for django that uses a one time code instead of passwords
Project description
# django-nopassword
[![CircleCI](https://circleci.com/gh/relekang/django-nopassword.svg?style=svg)](https://circleci.com/gh/relekang/django-nopassword)
This project was originally inspired by [Is it time for password-less login?](http://notes.xoxco.com/post/27999787765/is-it-time-for-password-less-login) by [Ben Brown](http://twitter.com/benbrown)
## Installation
Run this command to install django-nopassword
pip install django-nopassword
### Requirements
Django >= 1.4 (1.5 custom user is supported)
## Usage
Add the app to installed apps
```python
INSTALLED_APPS = (
...
'nopassword',
...
)
```
Set the authentication backend to *EmailBackend*
AUTHENTICATION_BACKENDS = ('nopassword.backends.email.EmailBackend',)
Add urls to your *urls.py*
```python
urlpatterns = patterns('',
...
url(r'^accounts/', include('nopassword.urls', namespace='nopassword')),
...
)
```
### Settings
Information about the available settings can be found in the [docs](http://django-nopassword.readthedocs.org/en/latest/#settings)
## Tests
Run with `python setup.py test`.
To run with sqlite add `USE_SQLITE = True` in tests/local.py
--------
MIT © Rolf Erik Lekang
[![CircleCI](https://circleci.com/gh/relekang/django-nopassword.svg?style=svg)](https://circleci.com/gh/relekang/django-nopassword)
This project was originally inspired by [Is it time for password-less login?](http://notes.xoxco.com/post/27999787765/is-it-time-for-password-less-login) by [Ben Brown](http://twitter.com/benbrown)
## Installation
Run this command to install django-nopassword
pip install django-nopassword
### Requirements
Django >= 1.4 (1.5 custom user is supported)
## Usage
Add the app to installed apps
```python
INSTALLED_APPS = (
...
'nopassword',
...
)
```
Set the authentication backend to *EmailBackend*
AUTHENTICATION_BACKENDS = ('nopassword.backends.email.EmailBackend',)
Add urls to your *urls.py*
```python
urlpatterns = patterns('',
...
url(r'^accounts/', include('nopassword.urls', namespace='nopassword')),
...
)
```
### Settings
Information about the available settings can be found in the [docs](http://django-nopassword.readthedocs.org/en/latest/#settings)
## Tests
Run with `python setup.py test`.
To run with sqlite add `USE_SQLITE = True` in tests/local.py
--------
MIT © Rolf Erik Lekang
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
Close
Hashes for django_nopassword-3.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b2584cd308496ae2395ce52e96dd49e1f4e6fd949a7725ea161d55e4ae7d83 |
|
MD5 | 4a3ac30f434553995e2046dc3db84c71 |
|
BLAKE2b-256 | cabf7e419f343e5b4f8aec8cb264e6db609da4756a4afe31b7ac7f751b10758b |