Making WordPress.org


Ignore:
Timestamp:
03/02/2022 06:07:14 AM (4 years ago)
Author:
dd32
Message:

Login: Add an admin UI to manage blocked words/phrases/email domains for registration spam.

This also allows whitelisting/blocking individual IP addresses.

File:
1 edited

Legend:

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

    r11380 r11620  
    99
    1010// Migrate to cookies.
    11 if ( !empty( $sso::$matched_route_params['confirm_user'] ) ) {
     11if ( ! empty( $sso::$matched_route_params['confirm_user'] ) ) {
    1212    setcookie( 'wporg_confirm_user', $sso::$matched_route_params['confirm_user'], time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );
    1313    setcookie( 'wporg_confirm_key',  $sso::$matched_route_params['confirm_key'],  time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );
     
    158158    </p>
    159159
    160     <div class="user-pass1-wrap">
     160    <div class="user-pass1-wrap" <?php echo ( $pending_user['cleared'] ? '' : "style='display:none;'" ); ?>>
    161161        <p>
    162162            <label for="pass1"><?php _e( 'Password', 'wporg' ); ?></label>
     
    187187
    188188    <p class="login-submit">
    189         <input data-sitekey="<?php echo esc_attr( RECAPTCHA_INVIS_PUBKEY ); ?>" data-callback='onSubmit' type="submit" name="wp-submit" id="wp-submit" class="g-recaptcha button button-primary button-large" value="<?php esc_attr_e( 'Create Account', 'wporg' ); ?>" />
     189        <input data-sitekey="<?php echo esc_attr( RECAPTCHA_INVIS_PUBKEY ); ?>" data-callback='onSubmit' type="submit" name="wp-submit" id="wp-submit" class="g-recaptcha button button-primary button-large" value="<?php ( $pending_user['cleared'] ? esc_attr_e( 'Create Account', 'wporg' ) : esc_attr_e( 'Save Profile Information', 'wporg' ) ); ?>" />
    190190    </p>
    191191
Note: See TracChangeset for help on using the changeset viewer.