Lines 146-151
if ( $step == 3 ) {
Link Here
|
146 |
my $cardnumber = $input->param('cardnumber'); |
146 |
my $cardnumber = $input->param('cardnumber'); |
147 |
my $userid = $input->param('userid'); |
147 |
my $userid = $input->param('userid'); |
148 |
|
148 |
|
|
|
149 |
my ( $is_valid, $passworderror) = Koha::AuthUtils::is_password_valid( $firstpassword ); |
150 |
|
149 |
if ( my $error_code = checkcardnumber($cardnumber) ) { |
151 |
if ( my $error_code = checkcardnumber($cardnumber) ) { |
150 |
if ( $error_code == 1 ) { |
152 |
if ( $error_code == 1 ) { |
151 |
push @messages, { code => 'ERROR_cardnumber_already_exists' }; |
153 |
push @messages, { code => 'ERROR_cardnumber_already_exists' }; |
Lines 158-165
if ( $step == 3 ) {
Link Here
|
158 |
|
160 |
|
159 |
push @messages, { code => 'ERROR_password_mismatch' }; |
161 |
push @messages, { code => 'ERROR_password_mismatch' }; |
160 |
} |
162 |
} |
161 |
else { |
163 |
elsif ( $passworderror) { |
|
|
164 |
push @messages, { code => 'ERROR_password_too_short'} if $passworderror eq 'too_short'; |
165 |
push @messages, { code => 'ERROR_password_too_weak'} if $passworderror eq 'too_weak'; |
166 |
push @messages, { code => 'ERROR_password_has_whitespaces'} if $passworderror eq 'has_whitespaces'; |
162 |
|
167 |
|
|
|
168 |
} |
169 |
else { |
163 |
my $patron_data = { |
170 |
my $patron_data = { |
164 |
surname => scalar $input->param('surname'), |
171 |
surname => scalar $input->param('surname'), |
165 |
firstname => scalar $input->param('firstname'), |
172 |
firstname => scalar $input->param('firstname'), |