reid hace 2 años
padre
commit
7e580becda
Se han modificado 2 ficheros con 1 adiciones y 2 borrados
  1. 0 2
      auth/auth.go
  2. 1 0
      ws/ws.go

+ 0 - 2
auth/auth.go

@@ -6,9 +6,7 @@ package auth
 // broadcasts get sent to members of this map
 
 import (
-	// "crypto/rand"
 	"crypto/sha512"
-	// "encoding/base64"
 	"encoding/hex"
 	"encoding/json"
 	"fmt"

+ 1 - 0
ws/ws.go

@@ -193,6 +193,7 @@ func loginHandler(conn *websocket.Conn, msg []byte, payload structs.WsPayload) e
 		config.Logger.Info("Login failed")
 		return fmt.Errorf("Failed auth")
 	}
+	broadcast.BroadcastToClients()
 	return nil
 }