password autogenerate for trojan client #751

This commit is contained in:
Alireza Ahmadi
2023-12-13 15:00:36 +01:00
parent 62ceaeba8f
commit 5acfdf584e

View File

@@ -21,8 +21,9 @@
<template slot="title">
<span>{{ i18n "pages.client.renew" }}</span>
</template>
Password
{{ i18n "password" }}
<a-icon v-if="inbound.protocol === Protocols.SHADOWSOCKS" @click="client.password = RandomUtil.randomShadowsocksPassword()" type="sync"></a-icon>
<a-icon v-if="inbound.protocol === Protocols.TROJAN" @click="client.password = RandomUtil.randomSeq(10)" type="sync"></a-icon>
</a-tooltip>
</template>
<a-input v-model.trim="client.password"></a-input>