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

(-)a/C4/Auth.pm (-5 / +5 lines)
Lines 687-693 sub checkauth { Link Here
687
            $userid   = $session->param('id');
687
            $userid   = $session->param('id');
688
            $sessiontype = $session->param('sessiontype') || '';
688
            $sessiontype = $session->param('sessiontype') || '';
689
        }
689
        }
690
        if ( ( ($query->param('koha_login_context')) && ($query->param('userid') ne $session->param('id')) )
690
        if ( ( ($query->param('koha_login_context')) && ($query->param('userid') ne ($session->param('id') // '')) )
691
          || ( $cas && $query->param('ticket') ) ) {
691
          || ( $cas && $query->param('ticket') ) ) {
692
            #if a user enters an id ne to the id in the current session, we need to log them in...
692
            #if a user enters an id ne to the id in the current session, we need to log them in...
693
            #first we need to clear the anonymous session...
693
            #first we need to clear the anonymous session...
Lines 759-769 sub checkauth { Link Here
759
            -value    => $session->id,
759
            -value    => $session->id,
760
            -HttpOnly => 1
760
            -HttpOnly => 1
761
        );
761
        );
762
    $userid = $query->param('userid');
762
        $userid = $query->param('userid');
763
        my $pki_field = C4::Context->preference('AllowPKIAuth') // 'None';
763
        if (   ( $cas && $query->param('ticket') )
764
        if (   ( $cas && $query->param('ticket') )
764
            || $userid
765
            || $userid
765
            || ( my $pki_field = C4::Context->preference('AllowPKIAuth') ) ne
766
            || $pki_field ne 'None'
766
            'None' || $persona )
767
            || $persona )
767
        {
768
        {
768
            my $password = $query->param('password');
769
            my $password = $query->param('password');
769
770
770
- 

Return to bug 11077