Deauthenticate websockets and set status to offline when user account deactivated (#4551)

Этот коммит содержится в:
Joram Wilander
2016-11-15 10:38:58 -05:00
коммит произвёл enahum
родитель 526c392aad
Коммит 9c36ca9aca
4 изменённых файлов: 38 добавлений и 5 удалений

Просмотреть файл

@@ -63,7 +63,7 @@ func (wr *WebSocketRouter) ServeWebSocket(conn *WebConn, r *model.WebSocketReque
return
}
if conn.SessionToken == "" {
if !conn.isAuthenticated() {
err := model.NewLocAppError("ServeWebSocket", "api.web_socket_router.not_authenticated.app_error", nil, "")
wr.ReturnWebSocketError(conn, r, err)
return