improve userID entropy

This commit is contained in:
Kevin F 2022-11-22 03:12:57 +00:00
parent 06376cfd66
commit 9e78db1ece

View File

@ -100,7 +100,7 @@ __ __ _____ __ __ _____
<input type="password" v-model="userIDInput" placeholder="Enter your account ID" required> <input type="password" v-model="userIDInput" placeholder="Enter your account ID" required>
<button @submit.prevent="onSubmit" @click="userID = userIDInput; userLogin()">Login</button> <button @submit.prevent="onSubmit" @click="userID = userIDInput; userLogin()">Login</button>
<button @submit.prevent="onSubmit" @click="userID = (window.crypto.randomUUID().substring(6) + window.crypto.randomUUID().substring(30)).replaceAll('-',''); userLogin()">Generate Account</button> <button @submit.prevent="onSubmit" @click="userID = (crypto.randomUUID().substring(6) + crypto.randomUUID().substring(30)).replaceAll('-',''); userLogin()">Generate Account</button>
</form> </form>
</div> </div>
<br><br> <br><br>