 
     # log ajax calls
     $(document).bind( 'ajaxComplete', ( e, request, settings ) =>
-      length = @url.length
-      if settings.url.substr(0,length) isnt @url && settings.url.substr(0,6) isnt 'api/ui'
+
+      # do not log ui requests
+      if settings.url && settings.url.substr(0,3) isnt '/ui'
         level = 'notice'
         responseText = ''
         if request.status >= 400
           level = 'error'
           responseText = request.responseText
+
+        # delete passwords form data
+        if settings.data && typeof settings.data is 'string'
+          settings.data = settings.data.replace(/"password":".+?"/gi, '"password":"xxx"')
+
         @log(
           'ajax.send',
           level,

    @trackId = 'track-' + new Date().getTime() + '-' + Math.floor( Math.random() * 99999 )
    @browser = App.Browser.detection()
    @data    = []
#    @url     = 'https://log.znuny.com/api/ui'
    @url     = 'https://portal.znuny.com/api/v1/ui'
#    @url     = 'api/ui'

    @log( 'start', 'notice', {} )


    $(window).bind(
      'beforeunload'
      =>
        @log( 'good bye', 'notice', {} )
        @send(false)
        return
    )
