A simple django app that provides site-wide easy password authentication for 1 user
Project description
django-pin-password
===================
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
============
Django Settings:
```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 #
```
Add to `urls.py`:
```python
url(r'^admin/', include(admin.site.urls)),
```
===================
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
============
Django Settings:
```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 #
```
Add to `urls.py`:
```python
url(r'^admin/', include(admin.site.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
File details
Details for the file django-pin-passcode-0.0.4.zip
.
File metadata
- Download URL: django-pin-passcode-0.0.4.zip
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0de1c0bc3e0e17f4169dde87fd95d4a6f3ac45f5adb73c4dffc37076a4938f87 |
|
MD5 | 5e0561c019ee294d14fa5889827493c3 |
|
BLAKE2b-256 | b7b0592f0f81cdd8ddb164c923df7bf37961f90f4507d85d1873a59b4747ad94 |