mirror of
https://github.com/dkmstr/openuds-gui.git
synced 2025-03-11 04:58:21 +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]
|
||||
.setAttribute('style', 'display: none;');
|
||||
this.api
|
||||
.getAuthCustomHtml(l.id)
|
||||
.getAuthCustomJavascript(l.id)
|
||||
.then((result) => doCustomAuth(result));
|
||||
}
|
||||
}
|
||||
|
@ -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'})
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user