Authentication/profile custom plugins

29 views
Skip to first unread message

James Shaver

unread,
Sep 17, 2016, 5:03:50 AM9/17/16
to Joomla! General Development
I've written two plugins integrating an external API. Authentication works, and the profiles update onUserAfterSave. I don't see a way though to implement a password reset.
Am I missing something, or would I need to make a full copy of the users component?

James Shaver

unread,
Sep 17, 2016, 1:45:10 PM9/17/16
to Joomla! General Development
I think I found it....

JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_users/models', 'UsersModel');
$model = JModelLegacy::getInstance('Reset', 'UsersModel');

$model->processResetRequest($data);
Reply all
Reply to author
Forward
0 new messages