Deauthenticate websockets and set status to offline when user account deactivated (#4551)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
526c392aad
Коммит
9c36ca9aca
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user