random password button for SS & more

crypto.getRandomValues for uuid
change name randomText to randomLowerAndNum
This commit is contained in:
MHSanaei
2023-06-09 16:04:57 +03:30
parent 81aa3ed10e
commit 7fc3d37851
8 changed files with 29 additions and 26 deletions

View File

@@ -18,7 +18,7 @@
</template>
</a-tooltip>
</span>
<a-icon @click="client.email = RandomUtil.randomText(8)" type="sync"> </a-icon>
<a-icon @click="client.email = RandomUtil.randomLowerAndNum(8)" type="sync"> </a-icon>
<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">
@@ -44,7 +44,7 @@
<a-icon type="question-circle" theme="filled"></a-icon>
</a-tooltip>
</span>
<a-icon @click="client.subId = RandomUtil.randomText(16)" type="sync"> </a-icon>
<a-icon @click="client.subId = RandomUtil.randomLowerAndNum(16)" type="sync"> </a-icon>
<a-input v-model.trim="client.subId" style="width: 150px;"></a-input>
</a-form-item>
<a-form-item v-if="client.email && app.tgBotEnable" >