Bug 11888: Random password suggestion does not work twice
authorJuhani Seppälä <jseppal@student.uef.fi>
Thu, 17 Jul 2014 08:45:06 +0000 (11:45 +0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 30 Jul 2014 14:56:03 +0000 (11:56 -0300)
commitc62e53bb972bf8f200bbf3c693b3089ebc721fda
tree8d6e3aa9925a9104ca29c4ca45542b0f2c65508e
parent61440fab138cf4d05491cb0b1af6b2aebc50a13c
Bug 11888: Random password suggestion does not work twice

This patch adds a simple ajax-call to pull a new suggested password
from the same perl script.

To test:
1) Search for a patron and select "Change password" from the moremember-view.
2) In the member-password-view, click on "Click to fill with a randomly generated suggestion".
3) Confirm that you get a new suggested password and click the same link again.
4) Note that you do not get another suggested password - nothing is happening.
5) Apply patch.
6) Repeat steps 1-3 and confirm that you can keep clicking for a new suggested password.

Patch works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script. Works as desribed.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt