Unverified Commit 4452a985 authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #87 from jumpserver/manual

Manual
parents eeedbcb9 d6228416
...@@ -107,10 +107,10 @@ export class HttpService { ...@@ -107,10 +107,10 @@ export class HttpService {
.set('system_user_id', system_user_id) .set('system_user_id', system_user_id)
.set('token', DataStore.guacamole_token); .set('token', DataStore.guacamole_token);
if (system_user_username) { if (system_user_username) {
params.set('username', system_user_username); params = params.set('username', system_user_username);
} }
if (system_user_password) { if (system_user_password) {
params.set('password', system_user_password); params = params.set('password', system_user_password);
} }
const solution = localStorage.getItem('rdpSolution') || 'Auto'; const solution = localStorage.getItem('rdpSolution') || 'Auto';
if (solution !== 'Auto') { if (solution !== 'Auto') {
......
...@@ -279,6 +279,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges { ...@@ -279,6 +279,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
} }
manualSetUserAuthLogin(host, user) { manualSetUserAuthLogin(host, user) {
user = Object.assign({}, user);
const dialogRef = this._dialog.open(ManualPasswordDialogComponent, { const dialogRef = this._dialog.open(ManualPasswordDialogComponent, {
height: '250px', height: '250px',
width: '400px', width: '400px',
......
...@@ -10,5 +10,5 @@ ...@@ -10,5 +10,5 @@
<div style="float: right"> <div style="float: right">
<button mat-raised-button (click)="onNoClick()" >{{"Cancel"|trans}}</button> <button mat-raised-button (click)="onNoClick()" >{{"Cancel"|trans}}</button>
<button mat-raised-button color="primary" [mat-dialog-close]="data" >{{"Confirm"|trans}}</button> <button mat-raised-button color="primary" [type]="'submit'" [mat-dialog-close]="data" >{{"Confirm"|trans}}</button>
</div> </div>
...@@ -73,11 +73,11 @@ export class ElementGuacamoleComponent implements OnInit { ...@@ -73,11 +73,11 @@ export class ElementGuacamoleComponent implements OnInit {
return null; return null;
} }
if (!environment.production) { // if (!environment.production) {
this.target = this._cookie.get('guacamole'); // this.target = this._cookie.get('guacamole');
NavList.List[this.index].Rdp = this.el.nativeElement; // NavList.List[this.index].Rdp = this.el.nativeElement;
return null; // return null;
} // }
this.registerHost(); this.registerHost();
} }
......
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