Skip to content

Commit 7b4dc90

Browse files
committed
hash the vault_challenge
1 parent a4d152d commit 7b4dc90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/backgroundControllers/accountsController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export const accountsController = (utils, services) => {
454454
}catch(e){}
455455

456456
try{
457-
const vault_challenge = new Date().toISOString()
457+
const vault_challenge = utils.hashStringValue(new Date().toISOString())
458458
const challenge_message = `[VAULT_AUTH]__DAPP__${dapp_challenge}__VAULT__${vault_challenge}`
459459
const signature = signString(vk, challenge_message)
460460

0 commit comments

Comments
 (0)