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:
parent
2d771484ff
commit
72d2806946
@ -62,7 +62,7 @@ export class LoginComponent implements OnInit {
|
|||||||
.getElementsByClassName('login-form')[0]
|
.getElementsByClassName('login-form')[0]
|
||||||
.setAttribute('style', 'display: none;');
|
.setAttribute('style', 'display: none;');
|
||||||
this.api
|
this.api
|
||||||
.getAuthCustomHtml(l.id)
|
.getAuthCustomJavascript(l.id)
|
||||||
.then((result) => doCustomAuth(result));
|
.then((result) => doCustomAuth(result));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -216,9 +216,9 @@ export class UDSApiService implements UDSApiServiceType {
|
|||||||
* @param authId if of the authenticator
|
* @param authId if of the authenticator
|
||||||
* @returns Observable
|
* @returns Observable
|
||||||
*/
|
*/
|
||||||
async getAuthCustomHtml(authId: string): Promise<string> {
|
async getAuthCustomJavascript(authId: string): Promise<string> {
|
||||||
return toPromise(
|
return toPromise(
|
||||||
this.http.get<string>(this.config.urls.customAuth + authId)
|
this.http.get(this.config.urls.customAuth + authId, {responseType: 'text'})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user