Skip to content
代码片段 群组 项目
未验证 提交 047a2010 编辑于 作者: Andrew Evans's avatar Andrew Evans 提交者: GitLab
浏览文件

Improve extra_slug_path_sanitization account creation

Currently, when an account is created via oAuth (such as from BitBucket)
and the `extra_slug_path_sanitization` feature is on, there is a risk of
the sanitized username for the new user conflicting with an existing
username. In this case, the sign-up flow will fail with the
error "username is already taken."

With this change, the flow will correctly iterate the username after all
sanitization has finished, and create a new user with a de-conflicted
name. This should ensure that even similar names from other platforms
will be able to succesfully create accounts on GitLab via oAuth, SCIM,
and LDAP.

Changelog: fixed
上级 aecfd161
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册