Skip to content

Commit 74a2496

Browse files
Added setCredentials Method
Added setCredentials(username, password) Method
1 parent f924b1e commit 74a2496

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

angular.soap.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ angular.module('angularSoap', [])
2323
SOAPClient.invoke(url, action, soapParams, true, soapCallback);
2424

2525
return deferred.promise;
26+
},
27+
setCredentials: function(username, password){
28+
SOAPClient.username = username;
29+
SOAPClient.password = password;
2630
}
2731
}
2832
}]);

0 commit comments

Comments
 (0)