diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-01-12 15:50:12 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2018-07-26 15:53:26 +0200 |
| commit | a8d868e2877e12e2c5c6329055f6c8568d286331 (patch) | |
| tree | 410fb43e22b8a32d1626f3657f1c45bc7077cd8a /odoo/exceptions.py | |
| parent | 48c058112f840992947551cfe3c74f6f448bf1fe (diff) | |
[ADD] Rate limiting to (failed) login attempts
Task 31122 section 4.
Implement per-IP rate limiting of login attempts after some number
of failures.
* check_credentials has no reason to be public, make it private
* add hooks to check for login cooldown on a source IP (remote_addr:
http://werkzeug.pocoo.org/docs/0.14/wrappers/#werkzeug.wrappers.BaseRequest.remote_addr)
basis
* add baseline/default configuration of 60s cooldown
* add baseline threshold of 10 login failures, after checking odoo.com
logs it looks like we have short runs of up to 7 failures (assumed
to be legitimate) before the user either gets it right or goes and
looks it up
Depends on #24187
Diffstat (limited to 'odoo/exceptions.py')
0 files changed, 0 insertions, 0 deletions
