summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-05-24 12:15:26 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-05-24 00:15:26 -0400
commitd5a98a29690e13f717fb72e8635fbea57e58f546 (patch)
treeb956c947814221d7a03bebc8516323266e81660e /modules/auth
parent181b7c99eddb373b4415b160dde9109cd4191878 (diff)
downloadgitea-d5a98a29690e13f717fb72e8635fbea57e58f546.tar.gz
gitea-d5a98a29690e13f717fb72e8635fbea57e58f546.zip
Add support of utf8mb4 for mysql (#6992)
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/user_form.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 38ee5415d9..8b9e5877d9 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -23,6 +23,7 @@ type InstallForm struct {
DbPasswd string
DbName string
SSLMode string
+ Charset string `binding:"Required;In(utf8,utf8mb4)"`
DbPath string
AppName string `binding:"Required" locale:"install.app_name"`