C4::Context->interface($in->{type});
$in->{'authnotrequired'} ||= 0;
my $template = C4::Templates::gettemplate(
$in->{'template_name'},
$in->{'type'},
-