Making WordPress.org


Ignore:
Timestamp:
04/27/2021 04:24:21 AM (4 years ago)
Author:
dd32
Message:

Login: Allow registrations with "low reCaptcha scores" to register, but go into a pending-moderation state.

This will allow legitimate users who receive a "Please try again" error to be manually approved.

This will also allow us to experiment with more aggressive anti-spam measures, as the majority of current spam registrations are human generated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-profile.php

    r10898 r10928  
    66 */
    77
     8$sso = WPOrg_SSO::get_instance();
     9
    810 // Migrate to cookies.
    9 if ( !empty( WP_WPOrg_SSO::$matched_route_params['profile_user'] ) ) {
    10     setcookie( 'wporg_profile_user', WP_WPOrg_SSO::$matched_route_params['profile_user'], time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );
    11     setcookie( 'wporg_profile_key',  WP_WPOrg_SSO::$matched_route_params['profile_key'],  time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );
     11if ( !empty( $sso::$matched_route_params['profile_user'] ) ) {
     12    setcookie( 'wporg_profile_user', $sso::$matched_route_params['profile_user'], time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );
     13    setcookie( 'wporg_profile_key',  $sso::$matched_route_params['profile_key'],  time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );
    1214
    1315    wp_safe_redirect( '/register/create-profile' );
     
    5456    <div class="message info">
    5557        <p><?php
     58        if ( $pending_user['cleared'] ) {
    5659            printf(
    5760                /* translators: %s Email address */
     
    6164                esc_attr( $pending_user['user_email'] )
    6265            );
     66        } else {
     67            printf(
     68                /* translators: %s Email address */
     69                __( 'Your account is pending approval. You will receive an email at %s to set your password when approved.', 'wporg' ) . '<br>' .
     70                __( 'Please contact %s for more details.', 'wporg' ),
     71                '<code>' . esc_html( $pending_user['user_email'] ) . '</code>',
     72                '<a href="mailto:' . $sso::SUPPORT_EMAIL . '">' . $sso::SUPPORT_EMAIL . '</a>'
     73            );
     74        }
    6375        ?></p>
    6476    </div>
    6577
    6678    <p class="intro">
    67     <?php _e( 'Complete your WordPress.org Profile information.', 'wporg' ); ?>
     79        <?php _e( 'Complete your WordPress.org Profile information.', 'wporg' ); ?>
    6880    </p>
    6981
     
    7284        <input type="text" disabled="disabled" class=" disabled" value="<?php echo esc_attr( $profile_user ); ?>" size="20" />
    7385    </p>
    74 
    7586
    7687    <?php
Note: See TracChangeset for help on using the changeset viewer.