Add Password Field for Contact Form 7

Descripción

Este plugin añade un campo de contraseña al plugin Contact Form 7.
Ejemplo: [password tu-contrasena] (opcional) / [password* tu-contrasena] (obligatorio)

Capturas

Instalación

Es fácil: Instala y activa el plugin.

Preguntas frecuentes

¿Cómo usar la habilidad para revisar la contraseña?

Ingresa el valor del “nombre” en el campo si deseas verificar el valor de un campo de contraseña.
Ej. Si estableciste [password password-100], establece [password* password-101 password_check:password-100]. Por favor, presta atención pues deben coincidir las letras mayúsculas y minúsculas.

¿Cómo usar la habilidad de mostrar la contraseña?

Establece el “id” y el valor se establece para ser igual que el valor “nombre”.
Ej. Si estableciste [password password-100], cambia a [password password-100 id:password-100].

La funcionalidad usa la biblioteca (Web fonts y CSS) de Font Awesome ( https://fontawesome.com/ ).

How can I use my theme’s Font Awesome stylesheet or another Font Awesome source?

This plugin loads the bundled Font Awesome stylesheet by default.

If your theme or another plugin already loads Font Awesome 6, you can dequeue this plugin’s stylesheet.

If you want to use another Font Awesome source, such as a CDN, dequeue the bundled stylesheet and enqueue your own stylesheet from your theme or custom plugin.

Example:

add_action( 'wp_enqueue_scripts', function() {
    wp_dequeue_style( 'cf7_add_password_field_style' );

    wp_enqueue_style(
        'my-font-awesome',
        'https://example.com/path/to/font-awesome.css',
        array(),
        null
    );
}, 20 );

Replace the example URL with the URL of your preferred Font Awesome stylesheet.

Loading stylesheets from third-party services may have privacy, availability, and security implications.

¿Cómo personalizar el campo de validación?

Please see the following document.
https://info.cseas.kyoto-u.ac.jp/en/links-en/plugin-en/wordpress-dev-info-en/cf7-add-password-field_en

How to save a password in hashed form

This plugin only adds a password field the Contact Form 7 plugin and does not encrypt(hash) input data.
If you want to hash a password value for keeping a database using an other plugin or sending by email, you need to add the code for hashing the data when you submit it pass through Contact Form 7, for example in your theme’s functions.php.
Reference: “Changing Contact Form 7 input values (28 January, 2023)” in https://info.cseas.kyoto-u.ac.jp/en/links-en/plugin-en/wordpress-dev-info-en/cf7-add-password-field_en

Reseñas

10 de diciembre de 2020
The plugin does what it says. Used it to create a registration form with CF7. Great job and thank you.
Leer todas las 5 reseñas

Colaboradores y desarrolladores

Este software es de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

“Add Password Field for Contact Form 7” ha sido traducido a 6 idiomas locales. Gracias a los traductores por sus contribuciones.

Traduce “Add Password Field for Contact Form 7” a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

5.3.0

  • Updated password visibility icons to use Font Awesome 6 native classes instead of legacy Font Awesome 4 compatibility classes.
  • Added README/FAQ documentation for replacing the bundled Font Awesome stylesheet with a preferred stylesheet.

5.2.0

  • Update the css and webfonts powered by fontawesome.com from 6.4.2 to version 6.7.2

5.1.0

  • Addressed WordPress.org Plugin Check warnings.
  • Confirmed compatibility with WordPress 7.0.
  • Improved security, sanitization, and escaping.

5.0.1

  • Tested up WordPress 6.7.2 with PHP 8.3.19 and 8.4.5.

5.0

*Supported for the Tag generator (version 2), which was changed in version 6.0 of Contact Form 7. For more information, please see https://aurisecreative.com/blog/2024/11/how-to-use-tag-generator-version-2-in-contact-form-7/.

4.2

  • Added 5 options (Icon_position, Icon_float, Icon_top, Icon_margin, Icon_marginleft) to customize icon position. Each of them corresponds to position, float, top, margin, and margin-left. The position setting is required for customization.

4.1

  • Update the css and webfonts powered by fontawesome.com from 5.15.4 to version 6.4.2.
  • New “hideIcon” option has been added. By setting this, it can hide the icon for displaying passwords.
  • Tested up WordPress 6.3 with PHP 8.2.
  • Tested up WordPress 6.5.2 with PHP 8.3.6.

4.0

  • Fxied the issue for the version 5.8 of Contact form 7; Since the version 5.8 of Contact form 7 ignores the id attribute if the same ID is already used for another element.
  • Changed to require WordPress 6.2+ and PHP 7.4+ according to the specifications required by Contact Form 7 itself.

3.31

  • Fixed some error message.

3.3

  • Added “specific_password_check” option for matching with specific passwords specified in advance.

3.2

  • Fixed the markup changes in form controls, such as error message, since the version 5.6 of Contact Form 7 plugin (https://contactform7.com/2022/05/20/contact-form-7-56-beta/).
  • Tested up 6.1

3.1

  • Fixed misspelling of id in maxlength on input tag (it was naxlength).

3.0

  • Fixed the password strength check.

2.10

  • Added character count option “minlength” ad “maxlength” implemented in Contact Form 7 plugin.
  • If both of “password_min” and “minlength” are set, the “minlength” setting takes precedence.

2.92

  • Se corrigió la traducción de un idioma.
  • Tested up 6.0

2.91

  • El css y las fuentes web con tecnología fontawesome.com para el icono de visualización de la contraseña estaban involucradas con el plugin para admitir un CDN o sin conexión.

2.9

  • Se agregó el hook “wpcf7_k_password_validation_filter” para personalizar la verificación de validación. Por favor, dirígete al FAQ para más detalles.

2.8

  • Se agregó la habilidad de mostrar una contraseña. Por favor. dirígete al FAQ para ver los detalles.

2.7

  • Corregimos algunas traducciones de idiomas.
  • Added the ability to verify a field value like a password.

2.6

  • Se corrigió el mensaje de error acerca de la descripción en el formulario de generación de contraseña.
  • Probado hasta 5.7 con PHP 8.0
  • Probado hasta 5.8

2.5

  • Añadidas dos restricciones: “Número de caracteres”, “Fortaleza de la contraseña”.
  • Probado hasta 5.5.1 con PHP 7.4
  • Probado hasta 5.6 con PHP 7.4

2.4

  • Se corrigió el problema donde el hook “cf7-add-password-field-features” no estaba disponible.
  • Probado hasta 5.5 con PHP 7.4

2.3

  • Añade la opción de texto de marcador de posición (https://contactform7.com/en/setting-placeholder-text/).
  • Probado hasta 5.3.2 con PHP 7.4

2.2

  • Probado hasta 5.3.1
  • Se agregó el hook “cf7-add-password-field-features” para personalizar la opción wpcf7_add_form_tag.

2.1

  • Probado hasta 5.2.4 con PHP 7.3.
  • Corregidos los argumentos de load_plugin_textdomain para WordPress 3.7 o posterior.

2.0

  • Probado hasta 5.2.2 con PHP 7.3.
  • Compatibilidad para el botón de formulario “Contraseña”.

1.0

  • Primera versión.