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

Change user id generation, making it pluggable #5

Closed
wants to merge 9 commits into from

Conversation

mauritsvanrees
Copy link
Sponsor Member

This refs http://dev.plone.org/ticket/11616 which complains that not all valid email addresses are accepted as login name. This pull request does not really change that, but takes a different approach, changing the way user ids are chosen.

  • For the normal case (no email login), nothing changes.
  • When using email as login, we no longer take the email address as user id, but we generate a user id based on the full name, for example bob-jones-2. This means the user id differs from the login name, but that is no problem.
  • We allow to choose a different user id generation scheme by registering an IUserIdGenerator utility. No utility is registered by default. Simple examples are included in the tests.

This is for the case when email is used as login.  It checked that a
changed email address was valid as user id.  But the user id is never
changed here, only the login name.  We would get an error when
changing an email address to for example
pete_o'hara+hello@example.org.  That one may look silly but is a fine
email adddress and should be allowed, also for login.  We only need to
check if this address is not used by another user.
vipod added a commit that referenced this pull request Nov 29, 2012
Use schema tags to process ordering / filtering
@mauritsvanrees
Copy link
Sponsor Member Author

No longer needed. PLIP 13419 is handling this more fully, and has already been merged.

@jensens jensens deleted the maurits-11616 branch September 29, 2015 21:01
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

Successfully merging this pull request may close these issues.

None yet

1 participant