View | Details | Raw Unified | Return to bug 19514
Collapse All | Expand All

(-)a/installer/onboarding.pl (-1 / +8 lines)
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'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/onboarding_messages.inc (-1 / +6 lines)
Lines 26-31 Link Here
26
            <div class="alert alert-success">Circulation rule created!</div>
26
            <div class="alert alert-success">Circulation rule created!</div>
27
        [% CASE 'error_on_insert_circ_rule' %]
27
        [% CASE 'error_on_insert_circ_rule' %]
28
            <div class="alert alert-danger">Circulation rule not created!</div>
28
            <div class="alert alert-danger">Circulation rule not created!</div>
29
        [% CASE 'ERROR_password_too_short' %]
30
            <div class="alert alert-danger">The patron has not been created the entered password was too short</div>
31
        [% CASE 'ERROR_password_too_weak' %]
32
            <div class="alert alert-danger">The patron has not been created the entered password was too weak, must contain at least one uppercase, and lower case letter and one number</div>
33
        [% CASE 'ERROR_password_has_whitespaces' %]
34
            <div class="alert alert-danger">The patron has not been created the entered password contained whitespaces</div>
29
        [% CASE %][% message %]
35
        [% CASE %][% message %]
30
    [% END %]
36
    [% END %]
31
[% END %]
37
[% END %]
32
- 

Return to bug 19514