- added "Show/hide password button" option;

This commit is contained in:
Mykyta Synelnikov
2023-07-25 12:42:39 +03:00
parent e45add34c4
commit 2d5ab45c01
3 changed files with 11 additions and 0 deletions
@@ -689,6 +689,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'use_um_gravatar_default_image' => array(
'sanitize' => 'bool',
),
'toggle_password' => array(
'sanitize' => 'bool',
),
'require_strongpass' => array(
'sanitize' => 'bool',
),
@@ -1088,6 +1091,12 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'tooltip' => __( 'Do you want to use the plugin default avatar instead of the gravatar default photo (If the user did not upload a custom profile photo / avatar)', 'ultimate-member' ),
'conditional' => array( 'use_um_gravatar_default_builtin_image', '=', 'default' ),
),
array(
'id' => 'toggle_password',
'type' => 'checkbox',
'label' => __( 'Show/hide password button', 'ultimate-member' ),
'tooltip' => __( 'Enable visibility for show/hide password button for the password field-type.', 'ultimate-member' ),
),
array(
'id' => 'require_strongpass',
'type' => 'checkbox',
+1
View File
@@ -520,6 +520,7 @@ if ( ! class_exists( 'um\Config' ) ) {
'use_gravatars' => 0,
'use_um_gravatar_default_builtin_image' => 'default',
'use_um_gravatar_default_image' => 0,
'toggle_password' => false,
'require_strongpass' => 0,
'password_min_chars' => 8,
'password_max_chars' => 30,
+1
View File
@@ -171,6 +171,7 @@ IMPORTANT: PLEASE UPDATE THE PLUGIN TO AT LEAST VERSION 2.6.7 IMMEDIATELY. VERSI
* Enhancements:
- Added: Compatibility with UM:Stripe extension
- Added: Show/hide password button for toggle password visibility
* Bugfixes: