1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

fix: removing .do from loginUrl mechanism

This commit is contained in:
2023-02-21 16:04:50 +01:00
parent ddb4a51c55
commit 64f8f8c893

View File

@@ -239,7 +239,7 @@ export class AuthManager {
} }
const { result: formResponse } = await this.requestClient.get<string>( const { result: formResponse } = await this.requestClient.get<string>(
this.loginUrl.replace('.do', ''), this.loginUrl.replace('login.do', 'login'),
undefined, undefined,
'text/plain' 'text/plain'
) )
@@ -348,7 +348,7 @@ export class AuthManager {
this.loginUrl = this.loginUrl =
this.serverType === ServerType.SasViya this.serverType === ServerType.SasViya
? tempLoginLink ? tempLoginLink
: loginUrl.replace('.do', '') : loginUrl.replace('login.do', 'login')
} }
} }