Truncate username if it is greater than 60 characters

Created on 1 December 2021, over 2 years ago
Updated 20 December 2023, 6 months ago

Drupal Core define username max length to 60 characters.

When setting the username in OpenIdConnect::generateUsername(), there is no check on the length of the retrieved value.
I propose to force a truncate to avoid errors when inserting into the database.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇫🇷France S3b0uN3t Nantes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024