In a previous tutorial, we learned how to build a WordPress user registration form without username field. Sequel to that, we will be learning how to create a (front-end) registration form without a password field. That is, users will be able to register, signup or create account without password.

Process Overview

When a ProfilePress powered registration form do not include a password field is used to register users to a WordPress powered site, a password reset message is automatically sent to the user on successful completion of the registration process.

You could decide to disable the password reset email that is sent immediately after registration and instead, include the link for the user to reset their password in a crafted welcome email delivered to their email.

Building the Registration Form

I assume you have ProfilePress installed and activated as well as the Memories Registration Form theme. If not, do that now.

Navigate to ProfilePress >> Registration Form, click the title of Memories Registration Form to open the edit screen.

Replace the content of Registration Design with the code below and save your changes.

<div id="sc-register"> <h1>Sign Up</h1> <div class="sc-container"> [reg-username title="Username" placeholder="Username"] [reg-email title="Email Address" placeholder="Email Address"] [reg-first-name title="First Name" placeholder="First Name"] [reg-last-name title="Last Name" placeholder="Last Name"] [reg-cpf key="gender" type="select" title="Gender"] [reg-cpf key="Twitter Profile URL" type="text" placeholder="Twitter Profile URL"] [reg-submit value="Register"] </div> </div>

Your registration form should now look like this without the password field:

When users register on your WordPress site via this form, a password reset (or “forgot password”) email will immediately be sent to them.

You can disable the automatic password reset email that is sent by adding the code snippet below to your active theme’s functions.php file or a site specific plugin.

add_filter('pp_enable_auto_send_password_reset_flag', '__return_false');

And alternatively allow the new registered users to create their login password by including a “password reset link” in their welcome email.

To do this, go to Settings >> Registration Settings, check Enable welcome message to activate the welcome email module.

Scroll down a bit and configure the welcome message at Welcome Message Settings section. Be sure to include the shortcode or placeholder {{password_reset_link}} in message.

Conclusion

We hope we’ve been able to teach you how to build a WordPress registration form where users can sign up without being required to enter a password.