Lines 28-34
my ( $template, $dummy, $cookie ) = get_template_and_user(
Link Here
|
28 |
my $email = $query->param('email') // q{}; |
28 |
my $email = $query->param('email') // q{}; |
29 |
my $password = $query->param('password'); |
29 |
my $password = $query->param('password'); |
30 |
my $repeatPassword = $query->param('repeatPassword'); |
30 |
my $repeatPassword = $query->param('repeatPassword'); |
31 |
my $minPassLength = C4::Context->preference('minPasswordLength'); |
|
|
32 |
my $id = $query->param('id'); |
31 |
my $id = $query->param('id'); |
33 |
my $uniqueKey = $query->param('uniqueKey'); |
32 |
my $uniqueKey = $query->param('uniqueKey'); |
34 |
my $username = $query->param('username'); |
33 |
my $username = $query->param('username'); |
Lines 133-138
if ( $query->param('sendEmail') || $query->param('resendEmail') ) {
Link Here
|
133 |
elsif ( $query->param('passwordReset') ) { |
132 |
elsif ( $query->param('passwordReset') ) { |
134 |
( $borrower_number, $username ) = GetValidLinkInfo($uniqueKey); |
133 |
( $borrower_number, $username ) = GetValidLinkInfo($uniqueKey); |
135 |
|
134 |
|
|
|
135 |
my $minPassLength = C4::Context->preference('minPasswordLength'); |
136 |
$minPassLength = 3 if not $minPassLength or $minPassLength < 3; |
136 |
#validate password length & match |
137 |
#validate password length & match |
137 |
if ( ($borrower_number) |
138 |
if ( ($borrower_number) |
138 |
&& ( $password eq $repeatPassword ) |
139 |
&& ( $password eq $repeatPassword ) |
Lines 157-163
elsif ( $query->param('passwordReset') ) {
Link Here
|
157 |
} |
158 |
} |
158 |
$template->param( |
159 |
$template->param( |
159 |
new_password => 1, |
160 |
new_password => 1, |
160 |
minPassLength => $minPassLength, |
|
|
161 |
email => $email, |
161 |
email => $email, |
162 |
uniqueKey => $uniqueKey, |
162 |
uniqueKey => $uniqueKey, |
163 |
errLinkNotValid => $errLinkNotValid, |
163 |
errLinkNotValid => $errLinkNotValid, |
Lines 177-183
elsif ($uniqueKey) { #reset password form
Link Here
|
177 |
|
177 |
|
178 |
$template->param( |
178 |
$template->param( |
179 |
new_password => 1, |
179 |
new_password => 1, |
180 |
minPassLength => $minPassLength, |
|
|
181 |
email => $email, |
180 |
email => $email, |
182 |
uniqueKey => $uniqueKey, |
181 |
uniqueKey => $uniqueKey, |
183 |
username => $username, |
182 |
username => $username, |
184 |
- |
|
|