1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-10-26 08:55:23 +03:00

fixed login response text

This commit is contained in:
Adolfo Gómez García 2023-01-16 03:31:40 +01:00
parent 2d771484ff
commit 72d2806946
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 3 additions and 3 deletions

View File

@ -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));
}
}

View File

@ -216,9 +216,9 @@ export class UDSApiService implements UDSApiServiceType {
* @param authId if of the authenticator
* @returns Observable
*/
async getAuthCustomHtml(authId: string): Promise<string> {
async getAuthCustomJavascript(authId: string): Promise<string> {
return toPromise(
this.http.get<string>(this.config.urls.customAuth + authId)
this.http.get(this.config.urls.customAuth + authId, {responseType: 'text'})
);
}