Skip to content

userIdentityProperty #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tadek888 opened this issue Feb 18, 2023 · 3 comments
Open

userIdentityProperty #3

Tadek888 opened this issue Feb 18, 2023 · 3 comments

Comments

@Tadek888
Copy link

Tadek888 commented Feb 18, 2023

If I set user property in yaml like:

// config/packages/ranky_media.yaml
ranky_media:
user_identifier_property: email

It doesny make any changes, new records in database "ranky_media" table, 'created_by' are still with 'username'

v: 1.2

@chiqui3d
Copy link
Contributor

Yes, that's exactly how it works. user_indentifier_property is just to know which field you are using if it is email or username (default), and that way save only the username. The user will be shown in the filter as a select (HTML element). It doesn't look good to have the email, well, that's how I thought at the time.

@Tadek888
Copy link
Author

Tadek888 commented Feb 19, 2023

Yes, that's exactly how it works. user_indentifier_property

Ok great but its not working. After set email in yaml config i get username in database (table: ranky_media)

composer.lock:
"version": "v1.2.2",

@chiqui3d
Copy link
Contributor

Yes, just store the username. The user_indentifier_property is only used to know how to do the query to get the username in case of different username.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants