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

Additional cleanup for external usernames on oAuth and LDAP sign up

Currently if a user joins a GitLab instance via oAuth, LDAP, or SCIM and
their username begins with multiple `--` characters, these characters
are removed to ensure a valid username can be created for the new user.
Illegal characters such as `*&^()` are removed, and illegal extensions
such as `.git` and `.atom` are also removed.

This change extends the behavior to include all leading legal
characters: `-` , `_` and `.` . It also trims from the end of the
potential username, and removes consecutive legal characters so the
resulting username will pass the check for
`Gitlab::Regex.oci_repository_path_regex` .

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