fgm/accounts-drupal

Make rootFields more configurable

Closed this issue · 1 comments

fgm commented

Currently, whoami returns the user name in the "name" property in D8, but possibly in other properties with a SF4 backend (e.g. case "name" being the full name and "username" the login name).

The package allows configuring which fields out of the hardcoded list in meteor are exposed as rootFields, but their names in the whoami input are hardcoded in various places, as well as a toLocaleLowerCase() call on the user name.

These need to be made configurable. The envisioned change will modify the package settings['accounts-drupal'].rootFields from an array to an object, each target (meteor) being the key to the source (backend: D8, SF4) from which is is to be loaded.

Downstream issue: 66176.

fgm commented

Merged via #37