Migrate forbidden and suggested usernames list to string slice. Closes #1873

This commit is contained in:
Gabe Kangas
2022-04-25 14:10:20 -07:00
parent a29d6450cb
commit b2b791b365
7 changed files with 119 additions and 48 deletions

View File

@@ -12,6 +12,13 @@ type ConfigEntry struct {
Value interface{}
}
func (c *ConfigEntry) getStringSlice() ([]string, error) {
decoder := c.getDecoder()
var result []string
err := decoder.Decode(&result)
return result, err
}
func (c *ConfigEntry) getString() (string, error) {
decoder := c.getDecoder()
var result string