Making WordPress.org


Ignore:
Timestamp:
04/30/2021 08:44:23 AM (4 years ago)
Author:
dd32
Message:

Login: Only allow one signup at a time by "inbox", that is, ignoring plus addressing.

This is mostly to combat spammers using myemail+sldkjasldf@… to create multiple accounts.
This does not prevent plus addressing being used.
This does not prevent multiple accounts using plus addressing from existing, only that only a single account via plus addressing can be created per 2 weeks.

File:
1 edited

Legend:

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

    r10928 r10941  
    8585
    8686    // Check we don't have a pending registration for that email.
    87     if ( $pending = wporg_get_pending_user( $email ) ) {
     87    $pending = wporg_get_pending_user( $email );
     88
     89    // And that there's no pending account signups for other emails for that inbox.
     90    if ( ! $pending && false !== strpos( $email, '+' ) ) {
     91        $pending = wporg_get_pending_user_by_email_wildcard( $email );
     92    }
     93
     94    if ( $pending ) {
    8895        return [
    8996            'available' => false,
Note: See TracChangeset for help on using the changeset viewer.