Lines 178-183
sub get_template_and_user {
Link Here
|
178 |
); |
178 |
); |
179 |
} |
179 |
} |
180 |
|
180 |
|
|
|
181 |
|
182 |
# If the user logged in is the SCO user and he tries to go out the SCO module, log the user out removing the CGISESSID cookie |
183 |
if ( $in->{type} eq 'opac' and $in->{template_name} !~ m|sco/| ) { |
184 |
if ( C4::Context->preference('AutoSelfCheckID') && $user eq C4::Context->preference('AutoSelfCheckID') ) { |
185 |
$template = C4::Templates::gettemplate( 'opac-auth.tt', 'opac', $in->{query} ); |
186 |
my $cookie = $in->{query}->cookie( |
187 |
-name => 'CGISESSID', |
188 |
-value => '', |
189 |
-expires => '', |
190 |
-HttpOnly => 1, |
191 |
); |
192 |
|
193 |
$template->param( loginprompt => 1 ); |
194 |
print $in->{query}->header( |
195 |
-type => 'text/html', |
196 |
-charset => 'utf-8', |
197 |
-cookie => $cookie, |
198 |
), |
199 |
$template->output; |
200 |
safe_exit; |
201 |
} |
202 |
} |
203 |
|
181 |
my $borrowernumber; |
204 |
my $borrowernumber; |
182 |
if ($user) { |
205 |
if ($user) { |
183 |
require C4::Members; |
206 |
require C4::Members; |
184 |
- |
|
|