Registration problem without username field

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 5 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #3685

    lorenzo m.
    Free User
    Post count: 3

    Hello,
    I do not want the “username” field in the registration form of my site and therefore I have disabled it, this causes a problem of sending email during registration without completing the procedure.

    I have enabled WP_DEBUG and inserted a new control in the plugin core file and I solved the problem: the value that manages the “username” field was not checked.

    This is the added code:

    file: /wp-content/plugins/userswp/includes/class-forms.php

    after line 322:

    if (! isset ($ result [‘uwp_account_username’]) || empty ($ result [‘uwp_account_username’])) {
    $ result [‘uwp_account_username’] = $ result [‘uwp_account_email’];
    }

    I preferred to map username with e-mails to have fewer user name problems.

    I send you my code to submit it for your approval to include it in future releases of the plugin.

    I am waiting for your reply.
    Thank you

    #3692

    Alex Rollin
    Moderator
    Post count: 27815

    Thanks for sharing your solution! We will take a look and consider that for future versions.

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket