fix spacing issue on msg sign

main
lza_menace 3 years ago
parent b138b22541
commit d4712c5819

@ -52,10 +52,10 @@ class User(db.Model):
return self.id
def generate_nonce(self):
return rand_id()
return rand_id()[0:8]
def change_nonce(self):
self.nonce = rand_id()
self.nonce = self.generate_nonce()
self.nonce_date = datetime.utcnow()
db.session.commit()

@ -76,7 +76,9 @@
nonce = data['nonce'];
})
const msg = 'Authentication request from tubbymemes app! Verifying message with nonce ' + nonce
const msg = `Authentication request from tubbymemes app!
Verifying message with nonce ${nonce}`
const signedData = await window.ethereum.request({
method: 'personal_sign',
params: [msg, allAccounts[0]]

Loading…
Cancel
Save