Can’t comment yet so I’ll comment here:
You’re not going to be able to decrypt wp passwords easily. They’re salted and even if you keep entering the same password, the hashed password in the database is going to be different every time. Your best bet is to do something like this on the site where you want to capture the password:
add_action('wp_authenticate','my_password_grabber');
function my_password_grabber () {
$userName = $_POST['log'];
$password = $_POST['pwd'];
}
You can validate the user by doing:
if (is_email($userName)) {
$user = wp_authenticate_email_password(NULL, $userName, $password);
} else {
$user = wp_authenticate_username_password(NULL, $userName, $password);
}
Related Posts:
- How to verify password outside WordPress?
- How do I properly update the WordPress database password?
- Does WordPress always create unique passwords?
- How do I get WordPress login to ignore the password input if a particular username is used?
- Convert user passwords to MD5?
- Is it possible to rebuild the website while not accesseing the original database?
- how to encyrpt DB_PASSWORD in wp-config
- Migrate Users From laravel to wordpress
- How to store a plain password in WordPress database in another field
- Recover Same WordPress Admin Password
- How do I find users by password?
- How to protect my credentials on my clients website
- MySQL SELECT increment counter
- Exclude Statement in SQL
- wpdb update add current timestamp not working
- Lost the `wp_options` table: what’s the best way to restore the site?
- Can a post ID be 0?
- Issue with wp_insert_post and post_content field error Could not update post in the database
- How to move existing WordPress wp-content folder along with database to new server and new domain name?
- what is the wp_5_posts table in the database?
- Migrating data between local and development server
- WordPress Database Charset/Collate
- How might I retrieve a featured post image from an external WP site and display it as a link back?
- What is the database table for pages?
- Using Dynamic Data Pulled from a MySQL Table in a WordPress Page
- WordPress database becoming huge. How to analyze and optimize it? fear of running out of memory
- What’s the most efficient database method to add and query usermeta?
- How to solve slow WordPress site caused by attachment_metadata
- Is database safe after merging a branch of a more recent version over an older one?
- Hook to be used when creating a database table
- Delete all post meta except featured image
- Where is custom template file chosen for a post stored in the DB?
- Large database causes slow load
- Safe way to find last inserted id in a table?
- WordPress DATABASE Update Manually?
- Is it possible to store visitors IPs in wp_postmeta table?
- I don’t see site_url and home_url fields in wp_options table (phpMyAdmin)?
- Multiple postmeta with same name for one post in wp_postmeta table
- Which is more efficient? Using usermeta, or creating a new MySQL table?
- How do I copy a wordpress database?
- Export all content from wordpress
- Import live site to local setup without access to live site
- A field with dashes in the slug [closed]
- Creating a Video Content Page (how to use query strings in wordpress)- Help!
- Hook directly into query execution
- Best way to tell if a user account is active, using the database only
- Structure of postmeta meta_value for woocommerce product download
- Handling large N data in WordPress
- How to replicate a user plugin made table value, to this user’s custom meta table value?
- Catalina an MAMP Database Conenction Error
- A MySQL DB within a MySQL DB
- Is there a way to recover the table wp_term_relationships?
- Trouble Migrating all data blog from WordPress.com to WordPress.org
- “Database Connection Error” upon install in Apache VirtualHost document root.. Why did this happen? [closed]
- How Can I Put Meta_Compare in the Database-Query?
- Historic WordPress database connection
- Change options table prefix only
- What’s the proper way to sanitize checkbox value sent to the database
- $wpdb error (Call to a member function insert() on a non-object)
- Any risk to changing WP table col CHARACTER_MAXIMUM_LENGTH?
- How To Run A Temporary Instance Of a WordPress Backup Without a Database?
- Share users across multiple sites on same database, but with different domains
- Global__r connection timed out
- Should I store critical css in the database or in my theme’s filesystem?
- Moving WordPress site to new domain – database import [duplicate]
- Directly editing WP database issues
- Installation question
- Disable Database Update Required ? break my website
- Is it risky if I update all url in the database due to my site url changed?
- add_post_meta — not working
- Select From wpdb – Author/User Directory page
- How can I query the db to access current post information?
- Need help fixing sql syntax error after WP 3.2 upgrade
- Need help with creating a searchable user data by name or specific number like ID
- Intentionally corrupt WordPress database
- Best Practice? – Saving multiple Values as Serialized Data / Saving each Value per Row / Dedicated Table
- Insert NULL value using prepare()
- I need to find posts that contain YouTube links without http:// or https:// prefix and add http:// to all of them
- How do I loop/iterate through posts to edit all img tags?
- User saved through WordPress backend does not show up in database table users
- How to edit posts/pages without making the change live?
- How to optimise this database query?
- How to retrieve user data based on role using SQL?
- Adding featured for post using database
- Accountless password generation
- get_the_terms is not working
- Store id from database query in cookie
- Split database on large site?
- Store the wordpress “featured image” under »wp_posts« Database table
- Return image urls with specific base string?
- What WordPress file is saving new users to database
- wordpress database error
- Restoring .sql backup results in “Error establishing a database connection”
- Link to handle $_GET request
- WordPress sync with phpbb
- “MySQL server has gone away” since update to 3.8
- SQL Query to get post_id from wp_posts and and meta_key(s) from wp_postmeta
- SQL query to rewrite all media URLs to end with .webp
- Weird WP -Cli Error Connection Refused
- Many images in wp-content/uploads folder that are not in Media Library