Skvare / com.skvare.cmsuser

Create CMS user in Bulk using Groups AND Tag assigned to Contacts.
Other
2 stars 5 forks source link

Login URL token is incomplete when user is generated by cron #5

Open MegaphoneJon opened 2 years ago

MegaphoneJon commented 2 years ago

This is on Drupal 9.3.2 and Civi 5.45.1. To replicate, configure CMS User to not create the user automatically. Fire the rule via cv (e.g. cv api Job.cmsuser).

The login URL is missing the domain, so instead of https://example.org/user/reset/224/1642118358/zaehDxtabytkWHRyLRZwseLxLqYBJunNnvyZlPyDhdo I get /user/reset/224/1642118358/zaehDxtabytkWHRyLRZwseLxLqYBJunNnvyZlPyDhdo.

This does NOT happen if I fire the rule from within the Civi UI, so I'm guessing that Drupal isn't being explicitly bootstrapped.