Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-05-16 23:39:32 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-05-16 23:39:32 +0300
commit8ceeb454ee15b4186ac99f3c9a108431d57419ff (patch)
tree01a193a2fe772cee28de95a673bc9d941e70030a /web/html/xui/form
parentf311bf1dbf2197a55a8934c106343fe850a9d254 (diff)
random - trojan password
Diffstat (limited to 'web/html/xui/form')
-rw-r--r--web/html/xui/form/client.html4
-rw-r--r--web/html/xui/form/protocol/trojan.html1
2 files changed, 3 insertions, 2 deletions
diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html
index c552bf48..625ff0ca 100644
--- a/web/html/xui/form/client.html
+++ b/web/html/xui/form/client.html
@@ -22,8 +22,8 @@
<a-input v-model.trim="client.email" style="width: 200px;"></a-input>
</a-form-item>
<a-form-item label="Password" v-if="inbound.protocol === Protocols.TROJAN || inbound.protocol === Protocols.SHADOWSOCKS">
- <a-icon v-if="inbound.protocol === Protocols.SHADOWSOCKS"
- @click="client.password = RandomUtil.randomShadowsocksPassword()" type="sync"> </a-icon>
+ <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-input v-model.trim="client.password" style="width: 300px;"></a-input>
</a-form-item>
<br>
diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html
index 28960543..b6a57644 100644
--- a/web/html/xui/form/protocol/trojan.html
+++ b/web/html/xui/form/protocol/trojan.html
@@ -15,6 +15,7 @@
<a-input v-model.trim="client.email" style="width: 200px;"></a-input>
</a-form-item>
<a-form-item label="Password">
+ <a-icon @click="client.password = RandomUtil.randomSeq(10)" type="sync"> </a-icon>
<a-input v-model.trim="client.password" style="width: 150px;"></a-input>
</a-form-item>
<a-form-item v-if="client.email">