diff options
Diffstat (limited to 'internal/validator/user.go')
-rw-r--r-- | internal/validator/user.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/validator/user.go b/internal/validator/user.go index 2365ee61..2e79785b 100644 --- a/internal/validator/user.go +++ b/internal/validator/user.go @@ -123,6 +123,12 @@ func ValidateUserModification(store *storage.Storage, userID int64, changes *mod } } + if changes.ExternalFontHosts != nil { + if !IsValidDomainList(*changes.ExternalFontHosts) { + return locale.NewLocalizedError("error.settings_invalid_domain_list") + } + } + return nil } |