Registration problem without username field

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

  • Author
  • #3685

    lorenzo m.
    Post count: 3

    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

    You must be logged in to view attached files.

    Alex Rollin
    Post count: 16381

    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)

The topic ‘Registration problem without username field’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.