[Koha-bugs] [Bug 10387] checkauth and get_template_and_user have copy-pasta for setting template variables