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

(-)a/C4/Auth.pm (-3 / +5 lines)
Lines 416-423 sub get_template_and_user { Link Here
416
    my $https = $in->{query}->https();
416
    my $https = $in->{query}->https();
417
    my $using_https = ( defined $https and $https ne 'OFF' ) ? 1 : 0;
417
    my $using_https = ( defined $https and $https ne 'OFF' ) ? 1 : 0;
418
418
419
    my $minPasswordLength = C4::Context->preference('minPasswordLength');
419
    my $minPasswordLength = C4::Context->preference('minPasswordLength') || 0;
420
    $minPasswordLength = 3 if not $minPasswordLength or $minPasswordLength < 3;
420
    if ( C4::Context->preference('RequireStrongPassword') ) {
421
        $minPasswordLength = 3 if $minPasswordLength < 3;
422
    }
423
421
    $template->param(
424
    $template->param(
422
        "BiblioDefaultView" . C4::Context->preference("BiblioDefaultView") => 1,
425
        "BiblioDefaultView" . C4::Context->preference("BiblioDefaultView") => 1,
423
        EnhancedMessagingPreferences                                       => C4::Context->preference('EnhancedMessagingPreferences'),
426
        EnhancedMessagingPreferences                                       => C4::Context->preference('EnhancedMessagingPreferences'),
424
- 

Return to bug 21314