From d9855bb22027029780c4d6c2c2b6578245cdf973 Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 30 Aug 2017 14:18:26 +0900 Subject: [PATCH] check email --- main.go | 3 --- module/member/confirm_pw.go | 28 --------------------------- module/member/modify.go | 38 ------------------------------------- 3 files changed, 69 deletions(-) delete mode 100644 module/member/confirm_pw.go delete mode 100644 module/member/modify.go diff --git a/main.go b/main.go index e93f718..db00ba2 100644 --- a/main.go +++ b/main.go @@ -49,9 +49,6 @@ func main() { s.Route("POST", "/account/signin", member.SignIn) s.Route("POST", "/account/signup", member.SignUp) - s.Route("POST", "/account/modify", member.Modify) - s.Route("POST", "/account/read", member.SignUp) - s.Route("POST", "/account/pw_confirm", member.ConfirmPW) s.Route("POST", "/account/forgot_password", member.ForgotPassword) s.Route("GET", "/account/check_email", member.CheckEmail) diff --git a/module/member/confirm_pw.go b/module/member/confirm_pw.go deleted file mode 100644 index f5dd5c3..0000000 --- a/module/member/confirm_pw.go +++ /dev/null @@ -1,28 +0,0 @@ -package member - -import ( - "github.com/valyala/fasthttp" - "git.loafle.net/overflow/overflow_server_app/server" - "git.loafle.net/overflow/overflow_server_app/backend" - "fmt" -) - -func ConfirmPW(sctx *server.ServerContext, ctx *fasthttp.RequestCtx) { - grpcPool := sctx.Value("grpc").(backend.Pool) - c, err := grpcPool.Get() - if nil != err { - - } - defer c.Close() - - fmt.Fprintf(ctx, "avail: %d\n", grpcPool.Available()) - - signinId := string(ctx.FormValue("signinId")) - signinPw := string(ctx.FormValue("signinPw")) - - params := []string{signinId, signinPw} - - r, err := c.Exec("MemberService", "confirmPw", params) - - fmt.Fprintf(ctx, "Confirm PW !!!!: %s\n", r) -} \ No newline at end of file diff --git a/module/member/modify.go b/module/member/modify.go deleted file mode 100644 index 036b302..0000000 --- a/module/member/modify.go +++ /dev/null @@ -1,38 +0,0 @@ -package member - -import ( - "fmt" - - "git.loafle.net/overflow/overflow_server_app/backend" - "git.loafle.net/overflow/overflow_server_app/server" - "github.com/valyala/fasthttp" - "encoding/json" -) - -func Modify(sctx *server.ServerContext, ctx *fasthttp.RequestCtx) { - grpcPool := sctx.Value("grpc").(backend.Pool) - fmt.Fprintf(ctx, "avail: %d\n", grpcPool.Available()) - c, err := grpcPool.Get() - if nil != err { - - } - defer c.Close() - - fmt.Fprintf(ctx, "avail: %d\n", grpcPool.Available()) - - m := &Member{} - m.Id = string(ctx.FormValue("id")) - m.Email = string(ctx.FormValue("email")) - m.Name = string(ctx.FormValue("name")) - m.CompanyName = string(ctx.FormValue("companyName")) - m.Phone = string(ctx.FormValue("phone")) - m.Pw = string(ctx.FormValue("pw")) - - mm,_ := json.Marshal(m) - params := []string{string(mm), string(m.Pw)} - - r, err := c.Exec("MemberService", "modify", params) - - fmt.Fprintf(ctx, "Welcome!!!!: %s\n", r) - -} \ No newline at end of file