A simple django app that provides site-wide easy password authentication for 1 user
Project description
django-pin-passcode
===================
<p align="center"><img src="https://github.com/ckcollab/django-pin-passcode/raw/master/docs/screenshot.png" alt="Django Pin Passcode Example"></p>
This is a simple app that adds a site-wide pin-passcode for quick authentication. I wrote this originally for my personal
motivation tracker called [chin up](https://github.com/ckcollab/chin-up) so I could quickly login from my phone.
You enter a PIN passcode (using 0-9 and #) and when you have entered the correct pin you will be logged in as `PIN_PASSCODE_USERNAME`
and forwarded either the index or the page you were trying to request.
Installation
============
### settings.py
```python
INSTALLED_APPS += (
'pin_passcode',
)
```
```python
MIDDLEWARE_CLASSES += (
'pin_passcode.middleware.PinPasscodeMiddleware',
)
```
```python
PIN_PASSCODE_USERNAME = 'eric' # user to sign in as, defaults to "admin"
PIN_PASSCODE_PIN = 1234 # the passcode required to login as the above user, using 0-9 and #
```
### urls.py
```python
urlpatterns = patterns(
...
url(r'^', include('pin_passcode.urls')),
...
)
```
===================
<p align="center"><img src="https://github.com/ckcollab/django-pin-passcode/raw/master/docs/screenshot.png" alt="Django Pin Passcode Example"></p>
This is a simple app that adds a site-wide pin-passcode for quick authentication. I wrote this originally for my personal
motivation tracker called [chin up](https://github.com/ckcollab/chin-up) so I could quickly login from my phone.
You enter a PIN passcode (using 0-9 and #) and when you have entered the correct pin you will be logged in as `PIN_PASSCODE_USERNAME`
and forwarded either the index or the page you were trying to request.
Installation
============
### settings.py
```python
INSTALLED_APPS += (
'pin_passcode',
)
```
```python
MIDDLEWARE_CLASSES += (
'pin_passcode.middleware.PinPasscodeMiddleware',
)
```
```python
PIN_PASSCODE_USERNAME = 'eric' # user to sign in as, defaults to "admin"
PIN_PASSCODE_PIN = 1234 # the passcode required to login as the above user, using 0-9 and #
```
### urls.py
```python
urlpatterns = patterns(
...
url(r'^', include('pin_passcode.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
django-pin-passcode-0.1.2.zip
(58.0 kB
view details)
File details
Details for the file django-pin-passcode-0.1.2.zip
.
File metadata
- Download URL: django-pin-passcode-0.1.2.zip
- Upload date:
- Size: 58.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d783367730719e5545b022200e3f81a8c7763e2d64a0c876cc7c7467d961dc6 |
|
MD5 | 9d54a261fe48aa2008c68e62b73f28bd |
|
BLAKE2b-256 | f14ac6470dc488f7a781778b46ee2241a1dff90165a9aed2c76116154a0a45f2 |