Prepend a 'v-' to the sql username strings

This commit is contained in:
Brian Kassouf 2017-05-01 15:45:17 -07:00
parent 0e70ba8dbc
commit 98e111d4cd
1 changed files with 1 additions and 1 deletions

View File

@ -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]
}