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 145-150
if ( $query->param('sendEmail') || $query->param('resendEmail') ) {
Link Here
|
145 |
elsif ( $query->param('passwordReset') ) { |
144 |
elsif ( $query->param('passwordReset') ) { |
146 |
( $borrower_number, $username ) = GetValidLinkInfo($uniqueKey); |
145 |
( $borrower_number, $username ) = GetValidLinkInfo($uniqueKey); |
147 |
|
146 |
|
|
|
147 |
my $minPassLength = C4::Context->preference('minPasswordLength'); |
148 |
$minPassLength = 3 if not $minPassLength or $minPassLength < 3; |
148 |
#validate password length & match |
149 |
#validate password length & match |
149 |
if ( ($borrower_number) |
150 |
if ( ($borrower_number) |
150 |
&& ( $password eq $repeatPassword ) |
151 |
&& ( $password eq $repeatPassword ) |
Lines 169-175
elsif ( $query->param('passwordReset') ) {
Link Here
|
169 |
} |
170 |
} |
170 |
$template->param( |
171 |
$template->param( |
171 |
new_password => 1, |
172 |
new_password => 1, |
172 |
minPassLength => $minPassLength, |
|
|
173 |
email => $email, |
173 |
email => $email, |
174 |
uniqueKey => $uniqueKey, |
174 |
uniqueKey => $uniqueKey, |
175 |
errLinkNotValid => $errLinkNotValid, |
175 |
errLinkNotValid => $errLinkNotValid, |
Lines 189-195
elsif ($uniqueKey) { #reset password form
Link Here
|
189 |
|
189 |
|
190 |
$template->param( |
190 |
$template->param( |
191 |
new_password => 1, |
191 |
new_password => 1, |
192 |
minPassLength => $minPassLength, |
|
|
193 |
email => $email, |
192 |
email => $email, |
194 |
uniqueKey => $uniqueKey, |
193 |
uniqueKey => $uniqueKey, |
195 |
username => $username, |
194 |
username => $username, |
196 |
- |
|
|