décorateurs et modèles pour protéger une vue par des questions secrètes
This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Benjamin Dauvergne c9b2e9bf36 Store requesting user on the request when successfull
Use is stored in request.secret_questions_user
2015-02-03 09:32:06 +01:00
auf Store requesting user on the request when successfull 2015-02-03 09:32:06 +01:00
.coveragerc fix coverage with tox 2013-08-08 19:05:36 -04:00
.gitignore start playing with tox & coverage 2013-08-08 18:38:06 -04:00
CHANGES add changes 2013-08-13 14:20:17 -04:00
MANIFEST.in rename package finish testing 2013-08-12 15:13:07 -04:00
README readme 2013-08-13 14:16:35 -04:00
setup.cfg model + setup form 2013-08-06 11:32:05 -04:00
setup.py fix namespace 2013-08-13 14:49:44 -04:00
tox.ini add south 2013-08-12 23:58:22 -04:00

README

auf.django.secretquestions
==========================


install
-------

* pip install auf.django.secretquestions

* include 'auf.django.secretquestions.urls' into patterns

* add 'auf.django.secretquestions' to your INSTALLED_APPS

* run syncdb --migrate


use
---

* add decorator to your view : secret_questions_required(ttl=None)


configuration
-------------

* SQ_SESSION_KEY : key for session

* SQ_TOKEN_TTL : global TTL (if not set in the decorator)


run tests
---------

* (optional) create virtualenv environment

* pip install tox

* git clone http://git.auf.org/auf_django_secretquestions.git auf.django.secretquestions

* cd  auf.django.secretquestions

* tox