Skip to content

sunlightlabs/django-magicword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagicWord

MagicWord provides password-only authentication for protected pages and sites.

Installation

  1. Configure django.contrib.auth according to the documentation.
  2. Add magicword to INSTALLED_APPS in settings.py.
  3. Add magicword.backends.MagicWordBackend to AUTHENTICATION_BACKENDS in settings.py.
  4. Replace the username field in registration/login.html (or a custom login form) with a hidden username field with a value of 'guest'.

Protect a page

Use Django's login_required decorator.

Protect a site

Install the MagicWord middleware:

MIDDLEWARE_CLASSES = (
    ...
    'magicword.middleware.MagicWordMiddleware',
    ...
)

About

MagicWord provides password-only authentication for protected pages and sites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages