I would approach the situation like:
- Create an user with subscriber role.
- Add a meta field to the user profile. This will be the password like field you will verify the user against.
- Use AJAX to verify the password(meta value) entered by the visitor and display product specification accordingly.
You do not have to worry about WP user roles or visitors getting access to admin side.
Hope this helps!
Related Posts:
- Private page protected with username and password
- Separate registration and login for different roles
- Check for correct username on custom login form
- Disallow user from editing their own profile information
- Add Confirm Password field in wp-login.php Password Reset page
- How to customise wp-login.php only for users who are setting a password for the first time?
- Give visitor access to password protected page/post via external script
- Send reset password link to user from custom lost password form
- Is it possible to get a user with just the password field?
- How can I retrieve the username and password from my WordPress installation?
- password protect individual pages
- Problem with logging in WP users automatically
- How to determine if a user has not changed default generated password
- Restricting frontend acess based on user role otherwise redirect to login form
- Right practice to edit WP reset password email
- Deny a user role to log in after register
- reset password link redirect to login page
- Password protect media attachment – share across guests
- Password reset – Disabled for LDAP accounts
- How to integrate external user tables with WP?
- Allow Users Only Edit Their Profile?
- Why wp_update_user doesn’t update user_activation_key on users with apostrophes in their email?
- Forgot Password/ Password Reset Page does not exist
- Correct passwords keep appearing as incorrect
- Forgot password needs to redirect from wp-login to a custom page
- How can I change the email sender name from wordpress to (myblogname) on the “lost password” email?
- Set Default User Role
- Lock out all WordPress Administrators except two specific users
- How to password-protect everything except the logo
- Generate email on meta value update
- Is there anyway to get the inputted password string from the login form?
- WordPress Login redirection according to user role
- How can I password protect a WordPress site without requiring users to log in?
- Password not resetting on wordpress?
- Prevent Subscriber Role to login
- autocomplete=”off” WordPress Login
- WordPress not logged in locally with correct username and password
- wordpress login without password just email address (NO 2 factor authentication with email)
- Password recovery URL has error – but not found in code or db
- Temporally disable password to login with empty password?
- I need to find which is the file that checks the DB for correct login (username, password)
- Login Based on ip
- URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site
- Login form does not store/remember/suggest users password
- Custom failed login error messages for users based on user role?
- Custom user roles are unable to login
- How to invalidate `password reset key` after being used
- WordPress password reset not working
- New user password confirmation sending wrong URL
- Locked out of WordPress admin area [closed]
- Global login to password protected pages
- Disable / Remove Password for Login WordPress
- How to password protect pages in WordPress
- Chosen user password in registration is not being accepted on Login
- User login without username, only password
- wp_lostpassword_url not escaped
- Trouble logging in and/or changing password
- Cannot login with correct username and password anymore
- Cant login, Password MUST be reset error, after reset
- Log in a user upon password reset?
- Customize From and email address on password reset
- In Django, how do I know the currently logged-in user?
- Can I programmatically login a user without a password?
- Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
- Is there any way to rename or hide wp-login.php?
- How to login with email only no username?
- How can I redirect user after entering wrong password?
- Increase of failed login attempts, brute force attacks? [closed]
- Login page ERROR: Cookies are blocked due to unexpected output
- SSO / authentication integration with external ‘directory service’
- Preventing session timeout
- How reduce wordpress login session timeout time?
- How to prefill WordPress registration with social details
- I can’t access my site via wp-admin
- ‘Password field is empty’ error when using autofill in Chrome
- Removing username from the ‘wordpress_logged_in’ cookie
- How to show ‘login error’ and ‘lost password’ on my template page?
- How do I require authorization / login to view a specific set of posts / pages?
- What is $interim_login?
- Custom login form
- How to prefill the username/password fields on the login page
- wp_signon returns user, but the user is not logged in
- How to protect pages with double authentication: password + email (in custom field)
- Adding extra authentication field in login page
- Replacing the WordPress password validation
- Prevent wp_login_form() from redirecting to wp-admin when there are errors
- Redirect user using the ‘wp_login_failed’ action hook if the error is ’empty_username’ or ’empty_password’
- wp_signon() does not authenticate user guidance needed
- What exactly is ReAuth?
- What are the differences between wp_users and wp_usermeta tables?
- Login members using web services
- Make my wordpress blog remember my login “forever”
- How to check in timber if user is loggedin?
- How do I change the language of only the login page?
- Disable WordPress 3.6 idle logout / login modal window / session expiration
- Stop WordPress from logging me out (need to keep me logged in)
- Woocommerce registration page [closed]
- How to disable autocomplete on the wp-login.php page
- Share login data/cookies between multiple installations
- Synchronize WordPress user accounts across multiple domains and installations without using WordPress MU