Members Module API Commands
*Use only on Custom Modules for login, account add, account update, account delete, post purchase List of Members API Commands available to Custom Modules Example syntax: $this->members_api->_get_member_details($id); Functions _get_member_details($id) - get the details of a member using the member ID _get_member_mailing_lists($id) - get the mailing lists a user is subscribed to. Returns an array with the mailing list IDs _get_member_memberships($id) - returns an array of the memberships a user is subscribed to _get_member_downloads($id) - returns an array of the downloadable products the user has in his profile. _get_member_groups($id) - returns an array of the groups the user is a member of. _get_member_shipping($id) - returns an array of the shipping address for the user. Password Decryption JEM allows you to retrieve a user's password for decryption, if you need to pass it on to your custom module. To do that, use the following code:
$data = $this->members_api->_get_member_details($id);
$current_password = $this->encrypt->decode($data['member_data']['password']);
You must also have the following set in your /system/application/config/config.php file:
$config['members_password_function'] = 'mcrypt';
