mirror of
https://github.com/jwinterm/tubbymemes.git
synced 2026-10-17 05:21:28 +02:00
fix spacing issue on msg sign
This commit is contained in:
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user