mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Update comment
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user