Fix for Bug 5280 - Fix password field so that the password is masked as it is entered
authorOwen Leonard <oleonard@myacpl.org>
Wed, 5 Oct 2011 16:04:12 +0000 (12:04 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 13 Feb 2012 15:39:59 +0000 (16:39 +0100)
commit4a6ec50c625419cc0f3884142b7f4307cd2a4370
treed98070fdf001ff6286f82475d76cc8024bc1f2b4
parent89893e8d4303127e266208d04cb2d135887bb644
Fix for Bug 5280 - Fix password field so that the password is masked as it is entered

This patch changes the password field to a password type input on
member-password.pl and adds a confirmation field to both member-password.pl
and memberentry.pl requiring that the password be re-entered to
confirm.

Client-side and server-side validation for the two password fields has been added
to both pages. Multiple error messages can now be displayed together on
member-password.pl.

If the user wishes for Koha to suggest a random password on member-password.pl
they can click a link which will remove the password-type input fields, replace
them with text-type fields, and automatically fill them with the random
password suggestion.

Follow-up fix lets the members.js correctly handling errors when there are
no mandatory fields

LR followup: fixing slight error that corrects previously reported template error.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Tested password setting/changing utilities - all work as expected and described.
Passes prove t xt t/db_dependent tests congruent with current master failures (adds no new fails).

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/js/members.js
koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
members/member-password.pl
members/memberentry.pl