]> git.koha-community.org Git - koha.git/commit
Bug 14599 - Saved auth login and password are used in patron creation from
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 23 Nov 2015 08:19:06 +0000 (09:19 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 11 Dec 2015 16:14:35 +0000 (17:14 +0100)
commit3f9d68e599f7e5915f8982fd199030c32c3d8cf3
treef0cb4339fe30df0952364e65f266f09aa027804f
parentdf1a9a98fd6f3186a05f9eeead63de1e2b3c39ff
Bug 14599 - Saved auth login and password are used in patron creation from

If one save the login and password used to authenticate in staff interface, when creating a new patron, those login and password are filled in the corresponding inputs in the form.
This behaviour is awkward from web browser.

A trick is provided by http://stackoverflow.com/questions/10738090/why-firefox-autocomplete-even-with-different-input-name

I found that the best way is to use an hidden disabled input between userid and password.

Test plan :

- Log into Koha
- Allow the browser to save the userid/password
- Be sure that you have only one userid/password for this Koha
- Loggout
- Re log to check the browser autocomplets the authentication form
- Create a new patron
=> Without patch your saved userid/password have been added to the form
=> With patch your saved userid/password have not been added to the form

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This is not elegant but it works.
Note that the problem does not exist with Chromium

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit f4870f6666127f0f0b2c49cc4f89cadd0241a8b9)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt