diff --git a/server.go b/server.go index 6bf04d5..33092e7 100644 --- a/server.go +++ b/server.go @@ -198,11 +198,9 @@ func check(w http.ResponseWriter, r *http.Request) { msg, _ = json.Marshal(tools.JsonResult{Code: 200, Msg: "验证成功"}) w.Write(msg) } else { - w.WriteHeader(400) w.Write(msg) } } else { - w.WriteHeader(400) w.Write(msg) } } diff --git a/tmpl/login.go b/tmpl/login.go index 5b8f401..cf9facc 100644 --- a/tmpl/login.go +++ b/tmpl/login.go @@ -16,7 +16,11 @@ func RenderLogin(w http.ResponseWriter, render interface{}) { 邮箱IMAP-登录页 - + + + + +