Update comment

This commit is contained in:
Kevin Pike 2016-04-08 09:07:06 -07:00
parent 35f49107cd
commit 1102863f5a
1 changed files with 1 additions and 1 deletions

View File

@ -51,12 +51,12 @@ func (b *backend) pathRoleCreateRead(
lease = &configLease{Lease: 1 * time.Hour}
}
// Generate the username, password and expiration. PG limits user to 63 characters
displayName := req.DisplayName
if len(displayName) > 26 {
displayName = displayName[:26]
}
username := fmt.Sprintf("%s-%s", displayName, uuid.GenerateUUID())
// Generate the username, password and expiration. Limit user to 63 characters
if len(username) > 63 {
username = username[:63]
}