Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/24/2018 06:20:34 PM (6 years ago)
Author:
boonebgorges
Message:

Add privacy policy acceptance checkbox to registration process.

When a published Privacy Policy exists on the site, a checkbox appears
just above the submit button on the registration process, which must be
checked in order to proceed with registration.

For maximum compatibility with existing sites, this change is currently
limited to Nouveau.

See #7866.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/screens/register.php

    r12151 r12178  
    7373        if ( ( !empty( $_POST['signup_password'] ) && !empty( $_POST['signup_password_confirm'] ) ) && $_POST['signup_password'] != $_POST['signup_password_confirm'] )
    7474            $bp->signup->errors['signup_password'] = __( 'The passwords you entered do not match.', 'buddypress' );
     75
     76        if ( bp_signup_requires_privacy_policy_acceptance() && ! empty( $_POST['signup-privacy-policy-check'] ) && empty( $_POST['signup-privacy-policy-accept'] ) ) {
     77            $bp->signup->errors['signup_privacy_policy'] = __( 'You must indicate that you have read and agreed to the Privacy Policy.', 'buddypress' );
     78        }
    7579
    7680        $bp->signup->username = $_POST['signup_username'];
Note: See TracChangeset for help on using the changeset viewer.