Disable email changes, lazy~~~~~

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-20 20:02:54 +08:00
parent 231f591767
commit 100fe32f8e

View File

@@ -36,11 +36,11 @@ func Update(c *gin.Context) {
return return
} }
if len(ReqInfo.Email) < 5 || len(ReqInfo.Email) >= 255 { // if len(ReqInfo.Email) < 5 || len(ReqInfo.Email) >= 255 {
utils.HttpResponse(c, 400, "", "invilad email") // utils.HttpResponse(c, 400, "", "invilad email")
return // return
} // }
userData.Email = ReqInfo.Email // userData.Email = ReqInfo.Email
if len(ReqInfo.Username) < 5 || len(ReqInfo.Username) >= 255 { if len(ReqInfo.Username) < 5 || len(ReqInfo.Username) >= 255 {
utils.HttpResponse(c, 400, "", "invilad user name") utils.HttpResponse(c, 400, "", "invilad user name")