]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Temporary User Lockout if 10 Invalid Login attempts
authorNizamudeen A <nia@redhat.com>
Thu, 26 Nov 2020 10:25:00 +0000 (15:55 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 12 Jan 2021 06:57:52 +0000 (12:27 +0530)
commit04e15ced855f920667d0187a10aec286f3b30cb7
treee3851f340e5e74a0f0c50b5b54f6b67f4f514b84
parent79adcfe1c91d71a042ed33a77a29dea96f116e6e
mgr/dashboard: Temporary User Lockout if 10 Invalid Login attempts

Implemented a user lockout mechanism if the user enters 10 invalid attempts. The attempt count gets resetted to 0 once the user succesfully logins before getting disabled. Once the user gets disabled administrator has to manually enable the user which will also resets the number of attempts.

Fixes: https://tracker.ceph.com/issues/40914
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 41941f0d28f51cb391ff7bacae84a5d511bafb36)
qa/tasks/mgr/dashboard/test_auth.py
src/pybind/mgr/dashboard/controllers/auth.py
src/pybind/mgr/dashboard/exceptions.py
src/pybind/mgr/dashboard/services/access_control.py
src/pybind/mgr/dashboard/settings.py