Skip to main content

mbr_password_change

Usage

This shortcode returns a HTML form through which the current logged in user linked to an ActiveCampaign contact can change their password.

The password is changed in both WordPress and ActiveCampaign.

The submitted password must satisfy the requirements of the WordPress password strength meter before a change can be processed.

Important

The default password strength must be determined as Strong to permit submission of the change by enabling the submit button unless the allow_weak_passwords parameter is used within the shortcode definition.

To determine as Strong the password should be at least twelve characters long and use a random mixture of upper and lower case letters, numbers, and symbols like ! @ # $ % ^ & * ( )

Parameters

ParametersDescription
redirectThe URL to redirect the user to after a successful completion of the password change request.
Default: none.
Required: no.
automation_idThe ActiveCampaign automation ID to add the logged in user to after successful completion of the password change. The available automations can be found in ActiveMember360, Utilities, Automations.
Default: none.
Required: no.
allow_weak_passwordsSpecifies whether the user will be able to choose a password that is determined at a minimum as Weak by the WordPress strength meter. The password must be at least seven characters and contain a random mixture of upper case, lower case and numeric characters. Special characters are permitted but are not compulsory.
Permitted Values: true, yes, 1
Default: none.
Required: no.
send_password_change_emailSpecifies whether the user will be emailed by WordPress with a notification that their password has been changed.
Permitted Values: true, yes, 1, false, no, 0
Default: no.
Required: no.
labelThe field label position.
Permissible Values: top, left, placeholder
Default: top
Required: no.
placeholderUse a placeholder for the first and second password fields instead of labels.
Permissible Values: true, yes, 1
Default: none.
Required: no.
button_textThe text to display on the submit button.
Default: Change Password
Required: no.
button_imageThe URL of the image to use for the submit button.
Default: none.
Required: no.
button_styleThe CSS style to apply to the submit button.
Default: none.
Required: no.
before_submit_buttonThe text or HTML placed before the submit button.
Default: none.
Required: no.
after_submit_buttonThe text or HTML placed after the submit button.
Default: none.
Required: no.
class_submit_buttonThe CSS class to apply for the submit button.
Default: mbr-submit
Required: no.
id_submit_buttonThe HTML id attribute to apply for the submit button.
Default: none.
Required: no.
lead_textThe text that should be appear above the password change form.
Default: none.
Required: no.
pass_1The label/placeholder for the first password input field.
Default: New Password
Required: no.
size_pass_1The size for the first password input field.
Default: 20
Required: no.
maxlength_pass_1The maximum input length for the first password input field.
Default: none.
Required: no.
before_pass_1The text or HTML that should be displayed before the first password label and input field.
Default: none.
Required: no.
after_pass_1The text or HTML that should be displayed after the first password input field.
Default: none.
Required: no.
style_pass_1The CSS style to apply to the first password input field.
Default: none.
Required: no.
class_pass_1The CSS class to apply to the first password input field.
Default: none.
Required: no.
pass_2The label/placeholder for the second password input field.
Default: New Password
Required: no.
size_pass_2The size for the second password input field.
Default: 20
Required: no.
maxlength_pass_2The maximum inputr length for the second password input field.
Default: none.
Required: no.
before_pass_2The text or HTML that should be displayed before the second password label and input field.
Default: none.
Required: no.
after_pass_2The text or HTML that should be displayed after the second password input field.
Default: none.
Required: no.
style_pass_2The CSS style to apply to the second password input field.
Default: none.
Required: no.
class_pass_2The CSS class to apply to the second password input field.
Default: none.
Required: no.

Validity

This shortcode is only processed for remote users i.e. logged in users who also exist as contacts within ActiveCampaign.

In all other cases, including WordPress users with the Administrator role nothing will be returned.

Conditional Branching

This shortcode does NOT support conditional branching with [ELSE_password_change].

Nesting

Shortcode nesting is NOT supported.

Examples

Generates a password change form with a password hint and using default values for the remaining parameters. The submitted password must register as Strong for the WordPress strength meter:

[mbr_password_change after_pass_2='Hint: Before submitting the change the password strength must show as STRONG. It should be at least twelve characters long. To make it stronger, use a mixture of upper and lower case letters, numbers, and symbols like ! @ # $ % ^ & * ( )']

Shortcode mbr_password_change Example One

API

Note

There is currently no ActiveMember360 API function equivalent for this shortcode.