Skip to main content

mbr_genpass

Overview

ActiveMember360 mbr_genpass is used to generate and store a random password for an ActiveCampaign contact. Unless otherwise specified, a WordPress user will also be created. It automatically executes upon receiving an ActiveCampaign HTTP POST sent by an ActiveCampaign webhook.

Alternatively a specified password can be stored in preference to the random password.

Usage

The URL used for mbr_genpass is constructed using your site URL and parameters.

A sample of the URL structure required is as follows:

site_url/?mbr_genpass=my_security_code

The mbr_genpass URL is used for the webhook URL in an ActiveCampaign automation.

Important

mbr_genpass will never overwrite an existing password in ActiveCampaign. It will only generate a new password and store it in ActiveCampaign if one does not already exist.

Any generated password will satisfy the password requirements defined in ActiveMember360, Settings, Passwords.

When mbr_genpass creates a WordPress user the username of the user is always set to the email address of the user.

No new user or login credentials emails are sent by mbr_genpass.

Site URL & Parameters

Site URLDescription
site_urlThe WordPress site URL used to generate a password and where the WordPress user is to be created. This can be found in WordPress, Settings, General, Site URL. It must be specified exactly as shown there.
Default: none.
Required: yes.
ParametersDescription
mbr_genpassSet to the security code used to authenticate the use of mbr_genpass. The security code used must be defined as detailed in ActiveMember360, Settings, Security, Security Codes.
Default: none.
Required: yes.
tidOne or more tag ID's defined within ActiveCampaign to add to this contact during the mbr_genpass process. If more than one is entered, please separate with commas. Tag ID's can be determined as explained in Determine ActiveCampaign Tag IDs.
Default: none.
Required: no.
automationOne or more automation ID's defined within ActiveCampaign to which the contact should be added during the mbr_genpass process. To assign to multiple automations, separate them with commas. Automation ID's can be determined as explained in Determine ActiveCampaign Automation IDs.
Default: none.
Required: no.
default_passSets the password to the specified string rather than a random password being generated. This string is not validated against the password requirements defined in ActiveMember360, Settings, Passwords.
Default: none.
Required: no.
autoregisterUnless specified a WordPress user will be created during the mbr_genpass process.
Permitted values: n
Default: none.
Required: no.

Examples

Important

In all examples my_security_code must be replaced by a security code defined in ActiveMember360, Settings, Security, Security Codes on the WordPress site.

This webhook URL will result in the generation of a password that is stored within ActiveCampaign for the ActiveCampaign contact for whom the webhook is executed from within an ActiveCampaign automation. A WordPress user will also be created with the username and email address the same as that of the emaill address of the ActiveCampaign contact:

https://yoursite.com/?mbr_genpass=my_security_code