Bugzilla – Attachment 84424 Details for
Bug 22047
set_password should have a 'skip_validation' param
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22047: Fix opac/opac-passwd.pl call
Bug-22047-Fix-opacopac-passwdpl-call.patch (text/plain), 1.62 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-01-25 19:00:46 UTC
(
hide
)
Description:
Bug 22047: Fix opac/opac-passwd.pl call
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-01-25 19:00:46 UTC
Size:
1.62 KB
patch
obsolete
>From f2151d9943a2ecdd30d6c01f709967f8962c122d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 26 Dec 2018 12:42:28 -0300 >Subject: [PATCH] Bug 22047: Fix opac/opac-passwd.pl call > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > Koha/Patron.pm | 2 +- > opac/opac-passwd.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index b10b116e0f..870cb6b819 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -708,7 +708,7 @@ sub set_password { > > my $password_length = length($password); > Koha::Exceptions::Password::TooShort->throw( >- { length => $password_length, min_length => $min_length } ); >+ length => $password_length, min_length => $min_length ); > } > elsif ( $error eq 'has_whitespaces' ) { > Koha::Exceptions::Password::WhitespaceCharacters->throw(); >diff --git a/opac/opac-passwd.pl b/opac/opac-passwd.pl >index 60d79f61c3..4c72d30c5c 100755 >--- a/opac/opac-passwd.pl >+++ b/opac/opac-passwd.pl >@@ -60,7 +60,7 @@ if ( C4::Context->preference("OpacPasswordChange") ) { > $template->param( 'passwords_mismatch' => '1' ); > } else { > try { >- $patron->set_password( $new_password ); >+ $patron->set_password({ password => $new_password }); > $template->param( 'password_updated' => '1' ); > $template->param( 'borrowernumber' => $borrowernumber ); > } >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22047
:
83491
|
83492
|
83493
|
83582
|
83583
|
83584
|
83594
|
83595
|
83596
|
84422
|
84423
| 84424