improve userID entropy
This commit is contained in:
parent
26b6b68165
commit
06376cfd66
@ -100,7 +100,7 @@ __ __ _____ __ __ _____
|
||||
<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 = crypto.randomUUID(); userLogin()">Generate Account</button>
|
||||
<button @submit.prevent="onSubmit" @click="userID = (window.crypto.randomUUID().substring(6) + window.crypto.randomUUID().substring(30)).replaceAll('-',''); userLogin()">Generate Account</button>
|
||||
</form>
|
||||
</div>
|
||||
<br><br>
|
||||
|
7
main.js
7
main.js
@ -271,7 +271,11 @@ let app = createApp({
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
// do this to get a connection to the backend so we don't have to wait for DNS later
|
||||
if (document.location.hostname.endsWith(".onion")){
|
||||
this.backend = "http://api.xmr4smsoncunkfgfjr6xmxl57afsmuu6rg2bwuysbgg4wdtoawamwxad.onion/"
|
||||
}
|
||||
fetch(this.backend + 'ping')
|
||||
this.getThreads(true)
|
||||
setInterval(()=>{
|
||||
@ -280,9 +284,6 @@ let app = createApp({
|
||||
setInterval(()=>{
|
||||
this.getCredits()
|
||||
}, 30000)
|
||||
if (document.location.hostname.endsWith(".onion")){
|
||||
this.backend = "http://api.xmr4smsoncunkfgfjr6xmxl57afsmuu6rg2bwuysbgg4wdtoawamwxad.onion/"
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user