From 74a24961ed29e0926ba6d6ec08a63d5891ab82b6 Mon Sep 17 00:00:00 2001 From: andrewmcgivery Date: Tue, 31 Mar 2015 10:22:31 -0400 Subject: [PATCH] Added setCredentials Method Added setCredentials(username, password) Method --- angular.soap.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/angular.soap.js b/angular.soap.js index 5fe85e3..7d5e561 100644 --- a/angular.soap.js +++ b/angular.soap.js @@ -23,6 +23,10 @@ angular.module('angularSoap', []) SOAPClient.invoke(url, action, soapParams, true, soapCallback); return deferred.promise; + }, + setCredentials: function(username, password){ + SOAPClient.username = username; + SOAPClient.password = password; } } }]);