Bug 33253: Turn off autocompletion for 2FA authentication code
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 16 Apr 2023 10:45:06 +0000 (10:45 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 9 May 2023 14:46:59 +0000 (11:46 -0300)
commit2496f6373ab7c3be31480e29050b11c0cdb7a964
tree89785e21e68b853f4231a26cad5e54a43c78d5f2
parent1ba08f87f8bf5fed31c951736e3d941ef1c9e0c8
Bug 33253: Turn off autocompletion for 2FA authentication code

The form for entering your authentication code shoudl not suggest
previous codes.

To test:
* Activate TwoFactorAuthentication
* Go to your patron account in staff
* More > Manage 2-factor authentication
* I used "Google authenticator" on my phone, so:
* Open app on your phone, add new and scan the QR code
* Enter activation code
* Log out of staff interface
* Log back in, you are now also asked for an authentication code
  as second step
* Look up code in app, enter, get logged in
* Log out, log back in - the form now suggests the previous code
  when you click on it
* Apply patch
* Reload things (restart_all on ktd)
* Verify that you no longer get the suggestion

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt