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.
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 URL | Description |
---|---|
site_url | The 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. |
Parameters | Description |
---|---|
mbr_genpass | Set 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. |
tid | One 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. |
automation | One 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_pass | Sets 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. |
autoregister | Unless specified a WordPress user will be created during the mbr_genpass process. Permitted values: n Default: none. Required: no. |
Examples
In all examples my_security_code must be replaced by a security code defined in ActiveMember360, Settings, Security, Security Codes on the WordPress site.
- Example 1
- Example 2
- Example 3
- Example 4
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
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. The ActiveCampaign tags with the ids of 123 and 456 will be added to the contact. 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&tid=123,456
This webhook URL will result in the a password with the string Abc#123! being stored within ActiveCampaign for the ActiveCampaign contact for whom the webhook is executed from within an ActiveCampaign automation. The ActiveCampaign contact will be added to the ActiveCampaign automation with the id of 12. 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&default_pass=Abc#123!&automation=12
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. No WordPress user will be created:
https://yoursite.com/?mbr_genpass=my_security_code&autoregister=n