dachcom-digital / pimcore-members

Pimcore Object, Asset and Document Restriction & Frontend Authentication
Other
54 stars 34 forks source link

Allow to define custom object key when using registration form #154

Closed scrummer closed 3 years ago

scrummer commented 3 years ago
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?

scrummer commented 3 years ago

Resolved in #156