From 786e4dce7d520f79b8cf76939d84678d72941420 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 1 Jun 2016 11:56:27 -0400 Subject: Revert "PLT-1800 Load server side locale from the config.json" (#3201) --- model/user.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'model/user.go') diff --git a/model/user.go b/model/user.go index ab076894a..b7717c4ff 100644 --- a/model/user.go +++ b/model/user.go @@ -136,6 +136,7 @@ func (u *User) PreSave() { u.Username = strings.ToLower(u.Username) u.Email = strings.ToLower(u.Email) + u.Locale = strings.ToLower(u.Locale) u.CreateAt = GetMillis() u.UpdateAt = u.CreateAt @@ -165,6 +166,7 @@ func (u *User) PreSave() { func (u *User) PreUpdate() { u.Username = strings.ToLower(u.Username) u.Email = strings.ToLower(u.Email) + u.Locale = strings.ToLower(u.Locale) u.UpdateAt = GetMillis() if u.AuthData != nil && *u.AuthData == "" { -- cgit v1.2.3-1-g7c22