Its Not has hard as you think it is 🙂
Add the password fields to your form :
password: <input type="password" name="pass1" style="width:250px; margin-bottom:3px;"><br />
repeat password: <input type="password" name="pass2" style="width:250px; margin-bottom:3px;"><br />
then in your if($_POST){
replace this line:
$random_password = wp_generate_password( 12, false );
with this:
$pass1 = $wpdb->escape($_REQUEST['pass1']);
$pass2 = $wpdb->escape($_REQUEST['pass2']);
if ($pass1 != $pass2){
echo "<span style="color:#FF0000"><strong>Error..</strong></span><br /><br />please use a passwords don't match.";
exit();
}
$random_password = $pass1;
Related Posts:
- Front End Registration Form Code – Password Field Not Saving
- Force user to change their password on the frontend at the first login and password policy
- Can i add password field into my wp registration form?
- Send clear password via mail
- Send user auto generated password on different email
- Let admin users edit member profiles from front end
- How to allow an user role to create a new user under a role which lower than his level only?
- Display user registration date
- Whats the best way to share user data across multiple WordPress websites?
- Replacing the WordPress password validation
- WordPress auto login after registration not working
- how to use joomla password format in wordpress?
- What the user_status column?
- Problem with Hebrew characters in username
- Remove email verification when new user register
- How to set up User email verification after Signup?
- How to display custom user meta from registration in backend?
- Best way to send users password?
- Multi-steps WordPress registration : in 4 steps how to?
- Force users to complete their profile after they register? How to
- Setting WP Admin passwords to expire
- How do i auto approve new user?
- Copy a user from one WordPress site to another
- Can I hook into the invite user process to verify their email address is from a certain domain?
- Migrating users from .com to .org?
- Get user input from a form
- How to get user ID during registration and add it to a custom table
- Front end user meta options for users
- Get user info outside WordPress
- Limit content by user registration date
- What is the best way to avoid spammers registering to my blog?
- ACF Upload Image in front-end with custom form
- Authenticate user using Hashed Password in MySQL Query and C#
- How to customize wp_signon()
- Is it possible to get a user with just the password field?
- How Do I Prevent Junk Account Creation?
- Creating a Front-end based User Search
- Can I bulk register contributors for a new blog
- New user notification doesn’t include activation link
- Delete user from frontend
- Importing Existing Users with Passwords
- WordPress to use Drupal users’ credentials
- How can I find users that didn’t set a password?
- Cannot set user passwords
- Create not-activated user in code, wordpress
- How can I allow password reset based on logins containing the @ character?
- How can I verify users facebook ID that he provides during signup process
- Register new user in the frontend
- Show MD5 Password in user section
- Plugin for limiting user registration based on ip with expiry period?
- Multiple Backend Users as single Frontend User
- Restricted registrations or removing the ability to edit your password/email
- Creating user in Firebase after WordPress user registration
- Force user to change their password on first log in of site using shortcode
- Can user login details be used for other applications?
- How to add a user profile page to frontend?
- Users managed to register on website with no register button?
- Add value in user table when user is created
- Displaying different in-page content to cliente/admin
- Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?
- Redirect user after successful email change
- Delete User via Frontend
- wordpress disable login for unverified user
- Reset Password policy
- How do I transfer user passwords from one WordPress site to another?
- How can I attach a user to another user with user meta
- How do I protect user_activation_key?
- Register user when after filling contact form
- Creating user without username and password
- OAuth 2 and saving the authenticated user
- WordPress registration without wp-login.php and wp-admin folder, is it possible?
- Check for valid email after user inactivity?
- WordPress Password security related questions
- How to set custom avatar for users?
- REST API: wp_get_current_user not working on second call
- Assign random (and unique) user meta upon registration
- How to add registration date and last login date to user list page
- What is correct way to change user’s email?
- How to programmatically read the plan text password when user register?
- Custom registration and pending approval
- How can i login with user’s password in WordPress being an admin?
- Should I setup frontend-only users as CPT or use a plug-in?
- Front end register with custom fields
- Automatic Website user password generation
- Customising “user ids” and add to ‘user’ panel in the admin area
- How to hide some users to unlogged users [closed]
- Force users to use password with specifications
- Unique password to access a section site
- Make new users automatically approved
- Adding more fields to the add user page on dashboard
- Making WordPress available while logged into another website
- Front-end registration form with password field
- Edit text of WordPress “Register” button
- Allow Weak Passwords
- User with same Mail but a different additional info(like domain)
- set automatically email address for WordPress users
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- Custom Password Reset
- Can I add a unique code for each user based on the location?
- Perform multiple actions after wp_insert_user()