From f1e56272ef0c56079318cffaa7b004914262c8f8 Mon Sep 17 00:00:00 2001 From: lealife Date: Sat, 10 Oct 2015 14:32:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9email=E5=8F=AA=E8=83=BD?= =?UTF-8?q?=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/UserService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/service/UserService.go b/app/service/UserService.go index 9d0d545..95b0eb7 100644 --- a/app/service/UserService.go +++ b/app/service/UserService.go @@ -362,7 +362,7 @@ func (this *UserService) UpdateEmail(token string) (ok bool, msg, email string) tokenInfo := info.Token{} if ok, msg, tokenInfo = tokenService.VerifyToken(token, info.TokenUpdateEmail); ok { // 修改之后的邮箱 - email = tokenInfo.Email + email = strings.ToLower(tokenInfo.Email) // 先验证该email是否被注册了 if userService.IsExistsUser(email) { ok = false