diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-16 23:39:32 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-16 23:39:32 +0300 |
| commit | 8ceeb454ee15b4186ac99f3c9a108431d57419ff (patch) | |
| tree | 01a193a2fe772cee28de95a673bc9d941e70030a | |
| parent | f311bf1dbf2197a55a8934c106343fe850a9d254 (diff) | |
random - trojan password
| -rw-r--r-- | web/html/xui/form/client.html | 4 | ||||
| -rw-r--r-- | web/html/xui/form/protocol/trojan.html | 1 | ||||
| -rw-r--r-- | web/html/xui/settings.html | 2 |
3 files changed, 4 insertions, 3 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"> diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 7226c0ac..3ceeb7a6 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -121,7 +121,7 @@ </a-col> <a-col :lg="24" :xl="12"> <svg - @click="generateRandomString" + @click="getNewSecret" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="anticon anticon-question-circle" viewBox="0 0 16 16"><path d="M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41zm-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9z"/><path fill-rule="evenodd" d="M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5.002 5.002 0 0 0 8 3zM3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9H3.1z"/> </svg> <template> |
