fix: update the get_guacamole_token

parent 2cce1e1b
......@@ -71,8 +71,10 @@ export class HttpService {
}
get_guacamole_token(username: string, assetID: string, systemUserID: string) {
return this.get('/guacamole/api/tokens?username=' + username + '&password=zheng&asset_id=' +
assetID + '&system_user_id=' + systemUserID, {headers: new HttpHeaders().set('Content-type', 'application/x-www-form-urlencoded')});
return this.http.post('/guacamole/api/tokens', {
username: username, password: 'zheng', asset_id:
assetID, system_user_id: systemUserID
}, {headers: new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded')});
}
search(q: string) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment