User Settings: Ignore empty language codes & validate (#13755)

This commit is contained in:
6543 2020-12-04 07:20:30 +01:00 committed by GitHub
parent 3512c7e40f
commit 48a3bb7a32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 6 deletions

View file

@ -202,7 +202,7 @@ type UpdateProfileForm struct {
KeepEmailPrivate bool
Website string `binding:"ValidUrl;MaxSize(255)"`
Location string `binding:"MaxSize(50)"`
Language string `binding:"Size(5)"`
Language string
Description string `binding:"MaxSize(255)"`
KeepActivityPrivate bool
}