fix spacing issue on msg sign

This commit is contained in:
lza_menace
2022-03-10 23:16:33 -08:00
parent b138b22541
commit d4712c5819
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -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()
+3 -1
View File
@@ -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]]