Hi
I just installed the plugin. I did not receive any errors but when I go to my Settings > Protect passwords I only see the tabs “Settings” and “Uninstall”, nothing more. Everything under the tab titels is empty / grey.
I deactivated all my other plugins but same result. Any advice?
Kind regards
]]>I have been using the plugin for some time now and loved it up until now. For some reason it is allowing the selected role ( I have a dealer role created) to reset passwords.
I have the Protected Role selected – Dealer
I have no other selections, and I have saved but it still allows reset for this role.
I also tried to select all the users in the Protected list and saved and again it still allows password reset.
I tried everything to figure this out but don’t know what the problem is. I would appreciate any help because I really need the feature of not allowing passwords to be reset for my dealer role.
Thanks
]]>Hi,
Providing a hook would be very helpful.
For example, a hook on “Save settings” would help to change the state of a user custom field, eg user-active.
Is there a chance of providing us with such a hook? Please?
Thank you,
Kostas
Hi,
I have been using Plainview Protect Passwords with our WordPress site with no problems. At present the site is running under WorPress 4.7.9 and php 7.0.28. I intend to update to latest php (7.2) and WordPress (4.9.4) versions as soon as possible. When I have checked the php compatibility of Plainview Protect Passwords using the WordPress plugin ‘PHP Compatibility Checker’ by WPengine I receive a report with 15 warnings and 3 errors.
Please can you tell me if the plugin will work correctly under php 7.1 /php 7.2 ?
Thanks in advance
The output from the report is:
Name: Plainview Protect Passwords
FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/form2/inputs/traits/container.php
———————————————————————————————————————————————————————–
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
———————————————————————————————————————————————————————–
80 | WARNING | Method name “container::__toString_after_container” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
90 | WARNING | Method name “container::__toString_after_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
100 | WARNING | Method name “container::__toString_before_container” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
110 | WARNING | Method name “container::__toString_before_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
———————————————————————————————————————————————————————–
FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/form2/inputs/fieldset.php
——————————————————————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
——————————————————————————————————————————————————————
22 | WARNING | Method name “fieldset::__toString_before_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
——————————————————————————————————————————————————————
FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/form2/inputs/inputfieldset.php
————————————————————————————————————————————————————————–
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
————————————————————————————————————————————————————————–
19 | WARNING | Method name “inputfieldset::__toString_before_container” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
30 | WARNING | Method name “inputfieldset::__toString_before_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
————————————————————————————————————————————————————————–
FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/traits/db_aware_object.php
————————————————————————————————————————————————————-
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
————————————————————————————————————————————————————-
76 | WARNING | Method name “db_aware_object::__db_delete” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
95 | WARNING | Method name “db_aware_object::__db_insert” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
114 | WARNING | Method name “db_aware_object::__db_load” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
133 | WARNING | Method name “db_aware_object::__db_update” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
————————————————————————————————————————————————————-
FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/wordpress/traits/db_aware_object.php
————————————————————————————————————————————————————
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
————————————————————————————————————————————————————
14 | WARNING | Method name “db_aware_object::__db_delete” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
23 | WARNING | Method name “db_aware_object::__db_update” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
41 | WARNING | Method name “db_aware_object::__db_insert” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
53 | WARNING | Method name “db_aware_object::__db_load” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
————————————————————————————————————————————————————
FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/wordpress/updater/edd.php
————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————-
291 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
————————————————————————————————————————-
FILE: wp-content/plugins/plainview-protect-passwords/src/traits/admin_menu.php
————————————————————————————————————
FOUND 2 ERRORS AFFECTING 2 LINES
————————————————————————————————————
37 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
136 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
————————————————————————————————————
Hi,
The plugin make lost “new password” function in backend (all user/user detail/ new password)
Can you please fix the issue?
Thanks
]]>Hi, I’m looking for simple code to disabled re-set password request for only 1 username, but i cannot find anywhere exactly code. Can you help archive this code? I used your plugin and it work as i wanted. But my web is too much plugin, i want to less as less plugin can be.
The username i wanted to disabled password request is “jamesadmin”. I found the bellow code, but it did not work correct.
Hope to hear from you!
=====================================================================================
class Password_Reset_Removed
{
function __construct()
{
add_filter( ‘show_password_fields’, array( $this, ‘disable’ ) );
add_filter( ‘allow_password_reset’, array( $this, ‘disable’ ) );
add_filter( ‘gettext’, array( $this, ‘remove’ ) );
}
function disable()
{
if ( is_admin() ) {
$userdata = wp_get_current_user();
$user = new WP_User($userdata->ID);
if ( !empty( $user->roles ) && $user->roles[0] == ‘administrator’ )
return true;
}
return false;
}
function remove($text)
{
return str_replace( array(‘Lost your password?’, ‘Lost your password’), ”, trim($text, ‘?’) );
}
}
$pass_reset_removed = new Password_Reset_Removed();
WP-login fails with these errors, despite a delete and reinstall of PPP:
Warning: Declaration of plainview\protect_passwords\traits\protection::get_user_capabilities($user_id) should be compatible with plainview\sdk_propas\wordpress\base::get_user_capabilities() in /home/edwinuser/azreealine.org/wp-content/plugins/plainview-protect-passwords/src/Protect_Passwords.php on line 9
Warning: Cannot modify header information – headers already sent by (output started at /home/edwinuser/azreealine.org/wp-content/plugins/plainview-protect-passwords/src/Protect_Passwords.php:9) in /home/edwinuser/azreealine.org/wp-login.php on line 396
Warning: Cannot modify header information – headers already sent by (output started at /home/edwinuser/azreealine.org/wp-content/plugins/plainview-protect-passwords/src/Protect_Passwords.php:9) in /home/edwinuser/azreealine.org/wp-login.php on line 409
—-
I have disabled the plugin and have access once again.
]]>