From 48a3bb7a32bb4e7e5a31cfeb4ca324621c417527 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 4 Dec 2020 07:20:30 +0100 Subject: User Settings: Ignore empty language codes & validate (#13755) --- modules/auth/user_form.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index 32fde1570e..c0aafec9e4 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -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 } -- cgit v1.2.3