Install
Works with Drupal: ^8 || ^9 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
20.68 KB
MD5: a8963de949a67ef1bd1ac53b69faa6a3
SHA-1: e15855b6b8b582667a313ef4c352578c0341090b
SHA-256: 0462885822896ff9efacc8331423f00d5443adeeefaf8499e51d5ec687f5dedb
Download zip
31.01 KB
MD5: 5562d512d1e89337cce67b3bb3361034
SHA-1: 70efc092cfde72558203cf74f4f32f880a1abf0d
SHA-256: 5a45a27d092fcaa6183e45e66e17da9a7061a1fbdf119e205935662efdff3d2b
Release notes
Hardening for the registration endpoints. Run database updates (drush updb) after upgrading. The endpoints stay public by default, so existing sites keep working.
Changes
- #3344447: New setting under Account settings > Registration and cancellation: Make the REST registration endpoints public. It's on by default. Turn it off to use the authentication providers and permissions configured on the REST resources (for example OAuth2, so only your frontend server can register users).
- The endpoints now follow "Who can register accounts?". Administrators only rejects anonymous registrations with a 403. Visitors, but administrator approval is required verifies the email address but leaves the account blocked until an administrator approves it.
field_*values sent with a registration are only saved when the caller has edit access to that field.- Flood control using the core
user.floodsettings. The IP limit applies to registrations, resends and failed verifications, and the user limit applies to failed verifications per account. Blocked requests get a 429. - Verification tokens are compared in constant time and deleted after use, so a token can't be reused.
- The account settings form failed to save with "'token' is a required key". An update hook adds the missing token length to existing sites.