Lines 682-688
sub checkauth {
Link Here
|
682 |
$userid = $session->param('id'); |
682 |
$userid = $session->param('id'); |
683 |
$sessiontype = $session->param('sessiontype') || ''; |
683 |
$sessiontype = $session->param('sessiontype') || ''; |
684 |
} |
684 |
} |
685 |
if ( ( ($query->param('koha_login_context')) && ($query->param('userid') ne $session->param('id')) ) |
685 |
if ( ( ($query->param('koha_login_context')) && ($query->param('userid') ne ($session->param('id') // '')) ) |
686 |
|| ( $cas && $query->param('ticket') ) ) { |
686 |
|| ( $cas && $query->param('ticket') ) ) { |
687 |
#if a user enters an id ne to the id in the current session, we need to log them in... |
687 |
#if a user enters an id ne to the id in the current session, we need to log them in... |
688 |
#first we need to clear the anonymous session... |
688 |
#first we need to clear the anonymous session... |
Lines 754-764
sub checkauth {
Link Here
|
754 |
-value => $session->id, |
754 |
-value => $session->id, |
755 |
-HttpOnly => 1 |
755 |
-HttpOnly => 1 |
756 |
); |
756 |
); |
757 |
$userid = $query->param('userid'); |
757 |
$userid = $query->param('userid'); |
|
|
758 |
my $pki_field = C4::Context->preference('AllowPKIAuth') // ''; |
758 |
if ( ( $cas && $query->param('ticket') ) |
759 |
if ( ( $cas && $query->param('ticket') ) |
759 |
|| $userid |
760 |
|| $userid |
760 |
|| ( my $pki_field = C4::Context->preference('AllowPKIAuth') ) ne |
761 |
|| $pki_field ne 'None' |
761 |
'None' || $persona ) |
762 |
|| $persona ) |
762 |
{ |
763 |
{ |
763 |
my $password = $query->param('password'); |
764 |
my $password = $query->param('password'); |
764 |
|
765 |
|
765 |
- |
|
|