Username too long during creation

Created on 26 April 2017, over 7 years ago
Updated 21 October 2023, about 1 year ago

Problem/Motivation

When Openid Connect module want to generate username during the connexion of a not existing user, if username length is higher than limitation (USERNAME_MAX_LENGTH = 60), then a fatal error occur.

Proposed resolution

In case username generated is higher than max length, we should change it so it can exceed 60 characters.

Two options :
1/ reduce username to length < 60 and suffix by an iterative number while username is not available.
2/ crypt username to a string of 60 characters

I have a preference for 2/ which is more generic.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France goz

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.71.5 2024