1

After a user logs in, I want to call a little mysql program.

How and where (in what module eg. mod_login) do I place the code?

1
  • You'll need a plugin for this. Cannot be done with a module. See @johanpw's answer
    – Lodder
    Nov 16 '15 at 9:30
1

You can use the onUserLogin event, and create a plugin that runs your code when the user is successfully logged in.

In case you want to run it before the login is verified, you can use onUserAuthenticate instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.