Hi
I have a rule on my site which is evaluated when a user logs in, but when they are logged in by IP login the rule does not seem to be triggered. Doesn't do it when they log out either. Is there something I can do to fix this?

thanks

Comments

jim kirkpatrick’s picture

Status: Active » Needs review

I believe this is because the appropriate hooks are not invoked on login or log out...

See: http://api.drupal.org/api/drupal/modules--user--user.module/function/use...

I've added some user_module_invoke() calls to the code in the right places to call 'login' and 'logout' hook_user operations. Tested with Rules and have successfully triggered login and logout rules...

New DEV version attached here - please try it out and let me know...

jim kirkpatrick’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
jim kirkpatrick’s picture

Status: Needs review » Fixed

Works for me using the new 2.x branch - try it out guykit.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.