]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Wed, 16 Dec 2020 10:44:47 +0000 (16:14 +0530)
commit41941f0d28f51cb391ff7bacae84a5d511bafb36
tree815c260b011b8cc7decc93c0f82bdc7f76d6ee72
parentf649030c73c8a995ac875185045d3908ae4cbb14
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>
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