Skip to content

Commit 5db8f42

Browse files
alpersogukpinarbryanmacfarlane
authored andcommitted
Update ntlm.ts (#70)
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.
1 parent b9cecf3 commit 5db8f42

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

api/handlers/ntlm.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ export class NtlmCredentialHandler implements VsoBaseInterfaces.IRequestHandler
1414
workstation: string;
1515
domain: string;
1616

17-
constructor(username: string, password: string, domain?: string, workstation?: string) {
17+
constructor(username: string, password: string, workstation?: string, domain?: string) {
1818
this.username = username;
1919
this.password = password;
20-
if (domain !== undefined) {
21-
this.domain = domain;
22-
}
2320
if (workstation !== undefined) {
2421
this.workstation = workstation;
2522
}
23+
if (domain !== undefined) {
24+
this.domain = domain;
25+
}
2626
}
2727

2828
prepareRequest(options:any): void {

0 commit comments

Comments
 (0)