~fabien-morin/unifield-web/fm-us-3366

Viewing all changes in revision 4861.

  • Committer: Fabien MORIN
  • Date: 2017-09-07 12:27:39 UTC
  • Revision ID: fabien.morin@tempo-consulting.fr-20170907122739-jl8fwtjyzxdb0euo
US-3366 [FIX] brutforce attack proof. If a user had 5 bad login attempts, he
will have to wait 5 minutes to try to login again.
An OrderedDict is used with maxium capacity of 50 IP to avoir memory overflow
by storing a lot of attemps with a lot of different IP (like DDOS attack)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: