浏览代码

auth work

reid 2 年之前
父节点
当前提交
fa1a11d8c2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ws/ws.go

+ 1 - 0
ws/ws.go

@@ -83,6 +83,7 @@ func WsHandler(w http.ResponseWriter, r *http.Request) {
 		// if it fails to marshal, assume that means no token
 		// "verify" action is implicit
 		if err := json.Unmarshal(msg, &payload); err != nil {
+			config.Logger.Info("New client")
 			// auth.CreateToken also adds to unauth map
 			newToken, err := auth.CreateToken(conn, r, false)
 			if err != nil {