Update comment
This commit is contained in:
parent
35f49107cd
commit
1102863f5a
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue