From 96f774e01df2cc4ba7406d5feced2bc6cb8c1118 Mon Sep 17 00:00:00 2001 From: Gregory Waxman Date: Mon, 11 May 2015 15:05:30 -0400 Subject: [PATCH] Added basic auth to resolve #531 This is an untested change that should correct for basic auth not actually working with zedd. --- app/js/open_ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/js/open_ui.js b/app/js/open_ui.js index 9c95e354..6b2a2dee 100644 --- a/app/js/open_ui.js +++ b/app/js/open_ui.js @@ -514,8 +514,9 @@ define(function(require, exports, module) { data: { action: 'version' }, - username: user || undefined, - password: pass || undefined, + headers: { + "Authorization": "Basic " + btoa(user + ":" + pass) + }, success: function() { resolve(); },