Skip to content
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

Userid is not in UUID when set site to use UUID for userid. #492

Open
fongtech opened this issue Aug 20, 2022 · 3 comments
Open

Userid is not in UUID when set site to use UUID for userid. #492

fongtech opened this issue Aug 20, 2022 · 3 comments
Assignees

Comments

@fongtech
Copy link

While testing Plone6 with plone.api-2.0.0b1, with site set as "Use email address as login name" and "Use UUID user ids".

api.user.create(email='[email protected]', password='password', properties={'fullname':'fullname'})
The new user will get the email as the userid, it should create a unique UUID as userid.

@ericof ericof self-assigned this May 15, 2023
@Ankuristic
Copy link

so , i understand the probem and i also think that we can resolve this using :
user_id = str(uuid.uuid4())
but when i contribute why alsways it make my contribution close . i also sign the plone contributing agreement . so help me as a new controbutor on plone how i start.

@davisagli
Copy link
Member

@Ankuristic There is a setting "Use UUID user ids". A UUID should only be set as the user id if this setting is turned on; otherwise we have to keep the user id that was specified by the user.

@davisagli
Copy link
Member

plone.api should use the same logic as the registration form in the classic UI for generating user ids: https://github.com/plone/plone.app.users/blob/master/plone/app/users/browser/register.py

@plone plone deleted a comment from Navaneethnanda Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants