Skip to content

Releases: BrianHenryIE/bh-wp-autologin-urls

v2.6.0

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 29 Jul 23:33

What's Changed

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

Full Changelog: 2.5.0...2.6.0

v2.5.0

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 11 Jul 02:07
  • Add filter bh_wp_autologin_urls_get_wp_user 114b778
  • Add filter bh_wp_autologin_urls_send_magic_link_email ff8cb47
  • Better handle wp_mail using an array of recipients 49d9afa

Thanks @mgratch

2.4.2

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 26 May 20:40

v2.4.1

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 08 May 02:42

v2.4.0

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 07 May 04:59
  • 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
  • Fix: bug with bh-wp-logger – thanks @sisaacrussell
  • Improve: logging
  • Improve: don't add autologin codes to The Newsletter Plugin emails' URLs

v2.3.0

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 12 Oct 20:40
  • Add: "Send magic login 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
screenshot-10 Screenshot 2023-10-12 at 1 02 01 PM Screenshot 2023-10-12 at 12 59 50 PM

v2.2.0

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 27 May 20:47
  • 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

bh-wp-autologin-urls-user-edit-template-clipboard

v2.1.1

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 23 May 02:16
  • Fix: Default expiry time when omitted in CLI was parsing as 0
  • Add: Warning that logs may contain autologin codes

v2.1.0

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 23 May 01:49
  • 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

v2.0.0

Choose a tag to compare

@BrianHenryIE BrianHenryIE released this 20 Apr 01:45
  • 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