Saltar al contenido
WordPress.org

Español (Argentina)

  • Temas
  • Plugins
  • Noticias
    • Documentación
    • Foros
  • Acerca de
  • Conseguí WordPress
Conseguí WordPress
WordPress.org

Plugin Directory

Magic Emails & Autologin URLs

  • Enviá un plugin
  • Mis favoritos
  • Acceder
  • Enviá un plugin
  • Mis favoritos
  • Acceder

Magic Emails & Autologin URLs

Por Brian Henry
Descargar
  • Detalles
  • Valoraciones
  • Desarrollo
Soporte

Descripción

A new “Email Magic Link” button is added to the standard WordPress and WooCommerce login screens. If there is a user
account for the username filled out, they will receive an email with a link to log them in without a password.

All emails sent from WordPress will contain login codes in links pointing back to the website:

  • Comment reply emails
  • Abandoned cart emails
  • Membership reminder emails
  • etc.

No configuration is required, by default:

  • Autologin URLs work for one week
  • Emails to administrators are excluded
  • Emails on exclusion shortlist are not modified

An API is available for developers to use autologin codes elsewhere in WordPress, e.g. push notifications, and to conditionally disable the plugin’s use. Code is published on GitHub, uses WordPress Plugin Boilerplate, conforms (mostly) to WordPress Coding Standards, and is unit & integration tested.

Capturas

Example email sent via Comment Reply Email Notification plugin.
Example email sent via Comment Reply Email Notification plugin.
The settings interface.
The settings interface.

Reseñas

No hay reseñas para este plugin.

Colaboradores y desarrolladores

“Magic Emails & Autologin URLs” es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores
  • Brian Henry

Traduce “Magic Emails & Autologin URLs” a tu idioma.

¿Interesado en el desarrollo?

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

Registro de cambios

2.7.0

  • Add: browser, IP address and location (when WooCommerce geolocation is available) of the request in magic link emails, so recipients can tell if it wasn’t them
  • Update dependencies

2.6.0

  • Security: rate limiting never actually blocked anything – failed autologin attempts are now counted and enforced
  • Security: malformed autologin codes are recorded against the IP and user again, restoring brute-force protection lost when the failure transients were replaced by a rate limiter
  • Fix: repeated use of a valid autologin link no longer exhausts the rate limit – only failures are counted
  • Fix: don’t show autologin URLs in the admin UI for administrator accounts
  • Fix: MailPoet 5.34 compatibility – the removed MailPoet\Models\Subscriber legacy model replaced with its Doctrine equivalents
  • Fix: usernames which are entirely numeric failed to resolve in API::get_wp_user()
  • Fix: fatal error when an integration’s constructor has an untyped or union-typed parameter
  • Fix: fatal error prefilling the WooCommerce checkout when the session handler has no set_customer_session_cookie()
  • Fix: get_ip_address() when HTTP_X_FORWARDED_FOR cannot be parsed
  • Fix: REST API expires_in schema – int is not a valid type (WordPress _doing_it_wrong since 5.5), and it was wrongly marked format: url
  • Fix: PHP 8.1 deprecations – FILTER_SANITIZE_STRING / FILTER_SANITIZE_STRIPPED
  • Fix: PHP 8.4 deprecation – implicit nullable parameter
  • Fix: a failure storing an autologin code no longer breaks the operation it was hooked into – notably wp_mail(), where an uncaught exception could break other plugins’ emails
  • Fix: catch throwables at every hook the plugin registers, so it can never fatal a site; failures are logged and shown as an admin notice
  • Fix: $wpdb error messages were lost before the exception was created, so the error admin notice had no detail
  • Fix: don’t email a magic “Sign-in Link” when no autologin code could be created
  • Add: get_wp_user() to API_Interface
  • Tested up to WordPress 7.0
  • Dev: dev environment modernized – wp-browser 4 / Codeception 5, PHPStan level 8 over src and tests, PHPCS clean, Rector, Playwright against WordPress 7.0, rebuilt GitHub Actions

2.5.0

  • Add filter bh_wp_autologin_urls_get_wp_user
  • Add filter bh_wp_autologin_urls_send_magic_link_email
  • Better handle wp_mail using an array of recipients

2.4.2

  • Fix: fatal error with User Switching plugin – firing wp_login too early

2.4.1

  • Fix fatal error with WooCommerce HPOS meta boxes hook – strict typing issue

2.4.0

  • Add: REST API
  • Add/fix: prefill WooCommerce checkout with user details from The Newsletter Plugin, Klaviyo, Mailpoet
  • Fix: fatal error on first request after WooCommerce is deleted from filesystem
  • Fix: broken WooCommerce orders page
  • Fix: strpos() null error when HTTP_USER_AGENT missing. Thanks @sisaacrussell
  • Improve: logging
  • Improve: don’t add autologin codes to The Newsletter Plugin emails’ URLs

2.3.0

  • Add: “Send magic link email” button on users list table
  • Fix: bug with bh-wp-logger – thanks @Amit-Biswas
  • Add: screenshots to .org plugin page
  • Add: CLI documentation
  • Fix: minor wording
  • Dev: add Playwright tests

2.2.0

  • Add: configurable template for user-edit.php autologin URL
  • Add: user-edit.php autologin URL click to copy to clipboard
  • Fix: “Email Magic Link” on wp-login.php was disabled when Firefox autofilled the username
  • Fix: JS for logs page were excluded from the plugin archive

2.1.1

  • Fix: Default expiry time when omitted in CLI was parsing as 0
  • Add: Warning that logs may contain autologin codes

2.1.0

  • Add: CLI commands wp autologin-urls get-url and wp autologin-urls send-magic-link
  • Fix: Links to /wp-admin were redirecting to wp-login screen because $_COOKIE was not yet set
  • Performance: Return early when no querystring set
  • Fix: wp_safe_redirect() exit() is now conditional

2.0.0

  • Breaking: UI for regex subject filters removed (functionality still exists through filters)
  • Fix: Use correct determine_current_user filter for login
  • Update library: RateLimit library has bugfix to handle false returned from transients for expected array
  • Update library: bh-wp-logger library has performance and feature improvements

1.10.0

  • Add bh_wp_autologin_urls_should_delete_code_after_use filter
  • Improved logging

1.9.0

  • Add: checkbox to enable/disable magic links
  • Add: magic link button on WooCommerce checkout
  • Add: enable overriding the settings page template
  • Improve: logging
  • Dev: use Alley Interactive autoloader

1.8.0

  • Add: ignore requests from bots (check HTTP_USER_AGENT for “bot”)
  • Fix: do not redirect_to wp-login.php, unwrap the inner redirect_to and use that
  • Fix: unprefixed Klaviyo\ApiException.

1.7.1

  • Fix: set content type on HTML emails
  • Fix: do not generate autologin URLs when serving WC_Orders over REST API
  • Improve: hyperlinks in log table

1.7.0

  • Add: Magic-link emails on wp-login.php and WooCommerce login forms
  • Add: Git Updater
  • Improved PHPCS and logging

1.6.3

  • Fix: Catch Klaviyo API errors
  • Language: Include generated .pot file

1.6.2

  • Dependency: updated logger library for performance

1.6.1

  • Fix: Fatal error when Klaviyo querystring was defined but empty
  • Fix: fatal error when plugin_action_links_{} filter called with null as parameter values (Jetpack)
  • Fix: (temp) Error when WooCommerce shuts down due to virtual WC_Customer
  • Fix: error when wp_mail’s $to is an array

1.6.0

  • Add: Settings and logs link on plugin install confirmation page
  • Fix: Prefilling WooCommerce customer data when no WP_User available: missing function parameter, wc_get_orders called too soon

1.5.0

  • Add: Support for using Klaviyo tracking links as autologin links
  • Change: Use library nikolaposa/rate-limit for rate limiting rather than internal code
  • Add: interface for integrations
  • Fix: Return early when user is already logged in
  • Fix: Error when Guzzle not prefixed
  • Dev: Project structure changed

1.4.0

  • Add: On admin UI single order page, add the autologin code to the “Customer payment page” link
  • Security: Exclude emails with multiple recipients

1.3.3

  • Add: Use custom table for storing codes, because transients are too ephemeral
  • Add: Option to bounce users through wp-login.php, to avoid caching issues
  • Add: Logs users in from links in The Newsletter Plugin
  • Add: Logs users in from links in MailPoet
  • Add: Prefill WooCommerce checkout data for mailing list users without accounts
  • Add: More secure verification via hash_equals
  • Add: Rate limiting bad login attempts
  • Add: Logging (mostly off by default)

1.1.2

  • Improved dependency management with Mozart for Composer.

1.1.1

  • Auto-deploying to WordPress.org

1.1.0

  • Rate limiting added for multiple failed login attempts against user accounts and from IPs. This only affects Autologin URLs logins and does not affect other authentication. 2019-September-11.

1.0

  • First release. 2019-September-01.

Meta

  • Versión 2.7.0
  • Última actualización hace 1 semana
  • Instalaciones activas 100+
  • Versión de WordPress 6.8 o superior
  • Testeado hasta 7.1.3
  • Versión de PHP 8.1 o superior
  • Idioma
    English (US)
  • Etiquetas:
    emailloginmagic linknewsletterwp_mail
  • Vista avanzada

Valoraciones

Todavía no se enviaron reseñas.

Your review

Ver todas las reseñas

Colaboradores

  • Brian Henry

Soporte

¿Tenés algo que decir? ¿Necesitás ayuda?

Ver el foro de asistencia

Donar

¿Te gustaría apoyar el progreso de este plugin?

Doná a este plugin

  • Acerca de
  • Noticias
  • Hosting
  • Privacidad
  • Escaparate
  • Temas
  • Plugins
  • Patrones
  • Aprender
  • Soporte
  • Desarrolladores
  • WordPress.tv ↗
  • Involucrate
  • Eventos
  • Donar ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

Español (Argentina)

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Visitá nuestra cuenta de X (anteriormente Twitter)
  • Visitá nuestra cuenta de Bluesky
  • Visitá nuestra cuenta de Mastodon
  • Visitá nuestra cuenta de Threads
  • Visitá nuestra página de Facebook
  • Visitá nuestra cuenta de Instagram
  • Visitá nuestra cuenta de LinkedIn
  • Visitá nuestra cuenta de TikTok
  • Visitá nuestro canal de YouTube
  • Visitá nuestra cuenta de Tumblr
El código es poesía.