set koha_login_context in order to get auto-login for SCO working
authorGalen Charlton <gmcharlt@gmail.com>
Mon, 8 Feb 2010 14:01:25 +0000 (09:01 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Mon, 8 Feb 2010 14:01:25 +0000 (09:01 -0500)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
opac/sco/sco-main.pl

index af9d996..3295a92 100755 (executable)
@@ -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",