How can i use _authChoice to hide parts in Login.tpl please?
LemonLdap 1.9
Hello, I try to understand how Login.tpl is generated. I want to use _authChoice value to hide some parts in login.tpl
I made a MyModule.pm file with functions which return booleans. I tried to use this in index.pl because i do not know how to use it in login.tpl properly:
$template->param( MaVar => MyModule::myFunc1($portal->{_authChoice}) );
In Login.tpl, when i use <TMPL_IF NAME="MaVar"> hello</TMPL_IF> in login.tpl, nothing is shown.
i tried instead those lines to know how get _authChoice var: $template->param( MaVar => $portal->{_authChoice} ); $template->param( MaVar => $portal->{sessionInfo}->{key} ); $template->param( MaVar => $portal->{sessionInfo}->{_authChoice} );
Nothing works,
I tried defining Exported Var in LemonLdap manager, idem I tried defining custom function too. idem Please, could someone help me to know where i could find some additional informations to understand how i can use _authChoice in Login.tpl?
Thanks