[ic] postlogin_action not working for me

Stefan Hornburg (Racke) racke at linuxia.de
Tue Sep 20 08:54:44 UTC 2011


On 09/19/2011 06:03 PM, Paul Jordan wrote:
>
>   >  >  There isn't much in the archives about this feature, but I have tried everything I can think of. I've tried *setting* postlogin_action in the profile in catalog.cfg, in the [userdb] tag that performs the login and in the login form. I've tried *defining* the action in profiles.login and in a scratch by it's name on the login page. As a test I am just setting a scratch to success and checking that, but nothing I do is working.
>>>
>>> Here is an example of how I try to set it in the userdb tag that is performing the login.
>>> [userdb function=login profile=user_agents postlogin_action=Ev_user]
>>>
>>> I would have thought, this would mean I could make an entry for profiles.login with ITL, but it just doesn't work.
>>>
>>> __NAME__ Ev_user
>>>
>>> [set evald]success[/set]
>>>
>>> __END__
>>>
>>>
>>> Does this feature still work?
>>
>> It expects a macro, similar to Autoload. So the following should work:
>>
>> Sub ev_user<<EOS
>> sub {
>> 	$Scratch->{evald} = 'success';
>> }
>> EOS
>>
>> UserDB user_agents postlogin_action ev_user
> Thanks for the clarification Racke. Since the docs were down, I was going by RTFM which says it can also be an block of ITL... which I don't believe can be in a sub. RTFM must be incorrect. Best, Paul 		 	   		
>

ITL should work too, but I would recommend using a subroutine :-).

Untested:

UserDB user_agents postlogin_action <<EOITL
[set evald]success[/set]
EOITL

Regards
           Racke

-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team




More information about the interchange-users mailing list