Password protect page with multiple passwords

Here’s just a demo test for fun, just to see if this might be possible: Demo First we set the post’s password, the usual way: Then we create a custom field called wpse_extra_passwords that takes comma seperated passwords: These are the extra passwords for that post. Let’s define the following helper function, based on the … Read more

How is password strength calculated?

The password strength meter in the latest versions of WordPress uses a library called “zxcvbn”, made by Dropbox in 2012. The library is available for free on Github: https://github.com/dropbox/zxcvbn An explanation of the library is here: https://blogs.dropbox.com/tech/2012/04/zxcvbn-realistic-password-strength-estimation/ But the short version is that it analyzes patterns in the password instead of being a simple “does … Read more

How to let user set password on registration

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 … Read more

how to use joomla password format in wordpress?

First of all you need to find out which hashing algorithm has been used on the Joomla site to store the passwords. Joomla – different to Worpdress – ships with a variety of hashing algorithms. If you have found out how the hashes have been generated, you can port the hashing function over into wordpress … Read more

Hook *after* user password change?

I wonder if you’re looking for this one: /** * Fires after the user’s password is reset. * * @since 4.4.0 * * @param object $user The user. * @param string $new_pass New user password. */ do_action( ‘after_password_reset’, $user, $new_pass ); It was introduced in WordPress 4.4 and lives within the reset_password() function. The after_password_reset … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)