overflow_server_app/module/member/check_email.go
2017-09-05 15:37:33 +09:00

26 lines
436 B
Go

package member
import (
"fmt"
"net/url"
"git.loafle.net/overflow/overflow_server_app/grpc"
"github.com/valyala/fasthttp"
)
func CheckEmail(ctx *fasthttp.RequestCtx) {
key := string(ctx.FormValue("key"))
params := []string{url.QueryEscape(key)}
r, err := grpc.Exec("EmailAuthService", "readByAuthKey", params)
if err != nil {
fmt.Fprintf(ctx, "Error!!!!: %s\n", err)
}
fmt.Fprintf(ctx, "Email Check!!!!: %s\n", r)
}