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