Skip to content

Commit

Permalink
Prepend a 'v-' to the sql username strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kassouf committed May 1, 2017
1 parent 66630f6 commit d68f283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/helper/database/credsutil/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit d68f283

Please sign in to comment.