mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-15 18:12:59 +00:00
Fix shadow issue in CI
This commit is contained in:
parent
484b30d0a1
commit
e5b206c1de
@ -354,7 +354,7 @@ func DefaultIdentityFunc(ctx context.Context, p Interface, email string, usernam
|
|||||||
if !sshUserRegex.MatchString(name) {
|
if !sshUserRegex.MatchString(name) {
|
||||||
return nil, errors.Errorf("invalid principal '%s' from email '%s'", name, email)
|
return nil, errors.Errorf("invalid principal '%s' from email '%s'", name, email)
|
||||||
}
|
}
|
||||||
usernames := append(usernames, name)
|
usernames = append(usernames, name)
|
||||||
if i := strings.LastIndex(email, "@"); i >= 0 {
|
if i := strings.LastIndex(email, "@"); i >= 0 {
|
||||||
usernames = append(usernames, email[:i])
|
usernames = append(usernames, email[:i])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user