From ab02734bb78c10a1ee256e442142bd1d2723e9c5 Mon Sep 17 00:00:00 2001 From: alpersogukpinar Date: Tue, 20 Dec 2016 08:05:54 +0200 Subject: [PATCH] Update ntlm.ts WebApi.ts new NtlmCredetialHandler initializatin was wrong at line39. workstation and domain order parameters were reverse order. But it is exported in that order, that's why I changed the constructor according to this. --- api/handlers/ntlm.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/handlers/ntlm.ts b/api/handlers/ntlm.ts index 5caf2392..cf037d8b 100644 --- a/api/handlers/ntlm.ts +++ b/api/handlers/ntlm.ts @@ -14,15 +14,15 @@ export class NtlmCredentialHandler implements VsoBaseInterfaces.IRequestHandler workstation: string; domain: string; - constructor(username: string, password: string, domain?: string, workstation?: string) { + constructor(username: string, password: string, workstation?: string, domain?: string) { this.username = username; this.password = password; - if (domain !== undefined) { - this.domain = domain; - } if (workstation !== undefined) { this.workstation = workstation; } + if (domain !== undefined) { + this.domain = domain; + } } prepareRequest(options:any): void {