fix: environment parsing for username

This commit is contained in:
Henrique Dias
2024-10-20 09:09:05 +02:00
parent a5777e18ee
commit 8c49af0b68
3 changed files with 53 additions and 3 deletions
+2 -2
View File
@@ -160,8 +160,8 @@ func (c *Config) Validate() error {
return fmt.Errorf("invalid config: %w", err)
}
for _, u := range c.Users {
err := u.Validate(c.NoPassword)
for i := range c.Users {
err := c.Users[i].Validate(c.NoPassword)
if err != nil {
return fmt.Errorf("invalid config: %w", err)
}