Skip to main content

Controlling Site Access

ActiveMember360 and WordPress Login

Important

There is no need for an ActiveCampaign contact to exist as a user within WordPress prior to their first login.

ActiveMember360 will automatically create a WordPress user if one does not already exist during the successful login process.

For an ActiveCampaign contact to be able to login to your WordPress site they must satisfy the following:

The only exceptions to the above is if:

ActiveMember360 also allows a login by a WordPress user who does not exist as a contact within ActiveCampaign providing one of the following applies:

In order to support the above ActiveMember360 performs it's own authentication process over and above that of WordPress.

ActiveMember360 is hooked in to the standard WordPress login process using the WordPress authenticate filter hook in order to achieve this.

Login Forms

The login page for your site can be chosen within ActiveMember360, Settings, Special Pages, Select your login page.

The default WordPress login page is that at wp-login.php which has it's own login form.

ActiveMember360 also provides a login form that can be used upon any page you chose. It is available using a shortcode, see ActiveMember360, Shortcodes, mbr_login_form. Similarly there is the ActiveMember360 Login Block.

Using any of the listed login methods above are the most robust and flexible. All of the methods will permit a redirect upon login as defined in ActiveMember360, Settings, Memberships.

ActiveMember360 is fully integrated with WooCommerce see ActiveMember360, Extensions, WooCommerce. A login using the WooCommerce login form will always redirect to your site's WooCommerce My Account page.

Regarding alternative login forms, for example those from other plugins and page builders, if they use the standard WordPress login process are likely to work with ActiveMember360. However the redirect upon login will be typically controlled by the other plugin or page builder.

Failed Login Attempt

If the login fails the visitor will be shown a message detailing why. The messages are somewhat generic to prevent unauthorised users from knowing exactly why their login attempt failed.

The messages typically shown are:

  • ERROR: Incorrect username/password. - The incorrect username, email address or password was entered.
  • ERROR: Sorry, you do not have login privileges on this site. - The ActiveCampaign contact does not have at least one of the ActiveCampaign tags used to define at least one membership in ActiveMember360, Settings, Memberships
  • ERROR: Invalid username, email address or incorrect password. - The incorrect username, email address or password was entered.
  • ERROR: An unknown error has occurred during login. Please try again. - A WordPress error occured when attempting to create or update the WordPress user.

Successful Login Attempt

After a successful login the user will either be logged in as a administrator user, local user, or remote user.

The following applies for the remote user.

The logged in user will be immediately redirected in this order of priority:

  1. The redirect on first login as set in ActiveMember360, Settings, Login, Page redirect on first login.
  2. Else the redirect upon login URL as set for the ActiveMember360 Shortcode [mbr_login_form] or the ActiveMember360 Login Block used to login.
  3. Else the redirect upon login URL as set in ActiveMember360, Settings, Memberships, Redirect on login.
  4. Else the site URL as set in WordPress, Settings, General, Site URL.

The logged in user will have access to public content and content to which their ActiveCampaign contact data permits.

After a successful login ActiveMember360 can be configured to run an ActiveCampaign automation defined in ActiveMember360, Settings, Login, Automation to run on login.

Finally if ActiveMember360, Settings, Login, Name of "last login" custom field is set the user login date for the current session will be saved to the chosen ActiveCampaign field.

Important

During a successful login the WordPress user first_name and last_name are always updated to match the ActiveCampaign contact fields first_name and last_name of the contact associated with the WordPress user.

Cookies

ActiveMember360 uses cookies.

The most important cookie, which is created after a successful login, maintains the link between the WordPress user and the ActiveCampaign contact with the same email address. This cookie mbr must remain in place.

Please ensure that neither your hosting provider, nor cookie consent plugins or services, are removing the ActiveMember360 cookies, most importantly the mbr cookie. They are essential for the correct operation of your site.

All ActiveMember360 cookies are removed after a logout from the WordPress site.

The full list of possible cookies all used for functional purposes are:

mbr
mbr_login
mbr_auto_logout
mbr_login_attempt
mbr_first_login_session