From 100fe32f8e397111c5f8f4a0670b4a901a8b0583 Mon Sep 17 00:00:00 2001 From: Asai Neko Date: Tue, 20 Jan 2026 20:02:54 +0800 Subject: [PATCH] Disable email changes, lazy~~~~~ Signed-off-by: Asai Neko --- service/user/update.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/service/user/update.go b/service/user/update.go index d889592..98a79db 100644 --- a/service/user/update.go +++ b/service/user/update.go @@ -36,11 +36,11 @@ func Update(c *gin.Context) { return } - if len(ReqInfo.Email) < 5 || len(ReqInfo.Email) >= 255 { - utils.HttpResponse(c, 400, "", "invilad email") - return - } - userData.Email = ReqInfo.Email + // if len(ReqInfo.Email) < 5 || len(ReqInfo.Email) >= 255 { + // utils.HttpResponse(c, 400, "", "invilad email") + // return + // } + // userData.Email = ReqInfo.Email if len(ReqInfo.Username) < 5 || len(ReqInfo.Username) >= 255 { utils.HttpResponse(c, 400, "", "invilad user name")