Prepend a 'v-' to the sql username strings
This commit is contained in:
parent
0e70ba8dbc
commit
98e111d4cd
|
@ -21,7 +21,7 @@ func (scp *SQLCredentialsProducer) GenerateUsername(displayName string) (string,
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
username := fmt.Sprintf("%s-%s", displayName, userUUID)
|
||||
username := fmt.Sprintf("v-%s-%s", displayName, userUUID)
|
||||
if scp.UsernameLen > 0 && len(username) > scp.UsernameLen {
|
||||
username = username[:scp.UsernameLen]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue