From 72d28069463bf9a29ed9ec03ee3eda41ac844b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 16 Jan 2023 03:31:40 +0100 Subject: [PATCH] fixed login response text --- src/app/pages/login/login.component.ts | 2 +- src/app/uds-api.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts index 1c5fc62..11a557e 100644 --- a/src/app/pages/login/login.component.ts +++ b/src/app/pages/login/login.component.ts @@ -62,7 +62,7 @@ export class LoginComponent implements OnInit { .getElementsByClassName('login-form')[0] .setAttribute('style', 'display: none;'); this.api - .getAuthCustomHtml(l.id) + .getAuthCustomJavascript(l.id) .then((result) => doCustomAuth(result)); } } diff --git a/src/app/uds-api.service.ts b/src/app/uds-api.service.ts index 117e430..82b5b70 100644 --- a/src/app/uds-api.service.ts +++ b/src/app/uds-api.service.ts @@ -216,9 +216,9 @@ export class UDSApiService implements UDSApiServiceType { * @param authId if of the authenticator * @returns Observable */ - async getAuthCustomHtml(authId: string): Promise { + async getAuthCustomJavascript(authId: string): Promise { return toPromise( - this.http.get(this.config.urls.customAuth + authId) + this.http.get(this.config.urls.customAuth + authId, {responseType: 'text'}) ); }