Viewing 4 replies - 1 through 4 (of 4 total)
  • The plugin doesn’t allow you to do that out-the-box but if you are happy to do a bit of PHP coding and are familiar with WordPress filters you can add support for that via some WordPress hooks.

    When a password is entered, it is checked against the password stored in the settings, but the plugin also runs the password_protected_process_login filter.

    You could use this filter to check the value of $password_protected_pwd and return true if it matches an alternative password.

    This a good plugin but would be a really awesome plugin if it could do that.

    Hey Ben, this is a great plugin!

    Would you be willing to add this feature in the near future?

    Although not ideal from a security standpoint, adding this to your functions.php would allow multiple passwords (in this example, pass1, pass2 and pass3) to work:

    function password_protected_process_login_callback($password_protected_pwd) {
    	$password_protected_pwd = $_REQUEST['password_protected_pwd'];
    	if(
    		$password_protected_pwd == "pass1" ||
    		$password_protected_pwd == "pass2" ||
    		$password_protected_pwd == "pass3"
    	){
        	return true;
        }
    }
    add_filter('password_protected_process_login','password_protected_process_login_callback');
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘multiple passwords’ is closed to new replies.