Reputation: 165340
I am interested in customizing the authentication method for a Joomla website.
There is a comprehensive tutorial on how to make a custom authentication plug-in, however a plug-in of that sort customizes the behavior on each log-in.
The behavior I need to implement should occur only once during registration. Is there any way to implement this?
Upvotes: 2
Views: 3141
Reputation: 3510
You'll want to create a user plugin that responds to the onBeforeStoreUser
event instead of an authentication plugin. The plugin creation process is much the same for user plugins. The onBeforeStoreUser
event receives two arguments: the user object and a boolean flag indicating whether or not the user is a new one.
You can look at plugins/user/example.php
to see all of the user plugin event handlers.
Upvotes: 2