Задать вопрос

Тел: +7 965 3737 888

471

Просмотров

0

Ответов

StrictAuthentication - Auto log-out inactive users

This dead-simple piece of middleware adds a terrific security feature to django authentication. Currently, users who's accounts are de-activated still may have a cookie and a login session. This middleware destroys that session on their next request.

Simply add this class into a middleware.py and add it to your settings.

Вопрос полезен? Да0/Нет0
file_2531.py(269.0б)
None