Allow to define custom object key when using registration form
Closed this issue · 1 comments
scrummer commented
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | yes |
Current situation
When we create a registration form which generates user objects in Pimcore, the key for the user object is always the Email (see: UserManager:242).
Even tho the method allows you to pass a custom key, the key is set to null
when the user is freshly initialized (-> UserManager.php:216.
Desired scenario
It would be nice to have an option to be configured, which of the form fields should be used to generate the object's key.
e.g.
members:
user:
key_form_field: 'firstname' # default value, if not given: "email"
Or did I miss something while researching?