From 372ebb8bdd017a1b18c3f867944851ed7f5dbe98 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 8 Feb 2010 09:01:25 -0500 Subject: [PATCH] set koha_login_context in order to get auto-login for SCO working Signed-off-by: Galen Charlton --- opac/sco/sco-main.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index af9d996b7a..3295a9240c 100755 --- a/opac/sco/sco-main.pl +++ b/opac/sco/sco-main.pl @@ -35,8 +35,9 @@ if (C4::Context->preference('AutoSelfCheckAllowed')) { my $AutoSelfCheckID = C4::Context->preference('AutoSelfCheckID'); my $AutoSelfCheckPass = C4::Context->preference('AutoSelfCheckPass'); - $query->param(-name=>'userid',-values=>[$AutoSelfCheckID]), - $query->param(-name=>'password',-values=>[$AutoSelfCheckPass]), + $query->param(-name=>'userid',-values=>[$AutoSelfCheckID]); + $query->param(-name=>'password',-values=>[$AutoSelfCheckPass]); + $query->param(-name=>'koha_login_context',-values=>['sco']); } my ($template, $loggedinuser, $cookie) = get_template_and_user({ template_name => "sco/sco-main.tmpl", -- 2.39.5