Skip to content

Commit 3270270

Browse files
authored
Merge pull request #1437 from jumpserver/pr@dev@perf_redis_connect_info
perf: perf redis connect info
2 parents d9fd341 + a1263ab commit 3270270

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/app/elements/content/content-window/magnus/magnus.component.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@ export class ElementConnectorMagnusComponent implements OnInit {
6161
{name: 'name', value: this.name, label: this._i18n.t('Name')},
6262
{name: 'host', value: this.endpoint.getHost(), label: this._i18n.t('Host')},
6363
{name: 'port', value: this.endpoint.getPort(this.protocol), label: this._i18n.t('Port')},
64-
{name: 'username', value: this.token.id, label: this._i18n.t('Username')},
65-
{name: 'password', value: this.token.value, label: this._i18n.t('Password')},
64+
{name: 'username', value: this.protocol == 'redis' ? '' : this.token.id, label: this._i18n.t('Username')},
65+
{
66+
name: 'password',
67+
value: this.protocol == 'redis' ? `${this.token.id}@${this.token.value}` : this.token.value,
68+
label: this._i18n.t('Password')
69+
},
6670
{name: 'database', value: this.protocol === 'oracle' ? this.token.id : database, label: this._i18n.t('Database')},
6771
{name: 'protocol', value: this.protocol, label: this._i18n.t('Protocol')},
6872
{name: 'date_expired', value: `${this.token.date_expired}`, label: this._i18n.t('Expire time')},

0 commit comments

Comments
 (0)