diff --git a/platypush/backend/http/static/js/plugins/camera.android.ipcam/index.js b/platypush/backend/http/static/js/plugins/camera.android.ipcam/index.js index 7b0f57d9..30695cd7 100644 --- a/platypush/backend/http/static/js/plugins/camera.android.ipcam/index.js +++ b/platypush/backend/http/static/js/plugins/camera.android.ipcam/index.js @@ -85,6 +85,11 @@ Vue.component('camera-android-ipcam', { if (cam[attr].startsWith('https://')) { cam[attr] = cam[attr].replace('https://', 'http://'); } + + if (cam[name] in this.config && this.config[cam[name]].username) { + cam[attr] = 'http://' + this.config[cam[name]].username + ':' + + this.config[cam[name]].password + cam[attr].substr(7); + } } cameras[cam.name] = cam;