From: Jonathan Druart Date: Fri, 17 Mar 2017 02:00:28 +0000 (-0300) Subject: Bug 18298: Move password generation to template side X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=ac50959dcf99739007907e8549ca22cdd0b97532;p=koha.git Bug 18298: Move password generation to template side This patch removes a really ugly way to generate a password: the whole template was sent and parsed to retrieve the "#defaultnewpassfield" node. To avoid the password to be sent plain text it is certainly better to generate it client-side. The same kind of passwords will be generated: 0-9a-zA-Z The while loop prevents to get an invalid generated password. Signed-off-by: Marc VĂ©ron Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt index 5191551c61..4e66075603 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt @@ -6,14 +6,28 @@