Skip to content

Commit

Permalink
Merge pull request #3246 from threefoldtech/dev_add_email_update
Browse files Browse the repository at this point in the history
Dev add email update
  • Loading branch information
amiraabouhadid authored Aug 8, 2024
2 parents d52b72f + 503d2d3 commit 108d686
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/playground/src/weblets/profile_manager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,15 @@ async function login() {
const keypairType = credentials.keypairTypeHash
? cryptr.decrypt(credentials.keypairTypeHash)
: KeypairType.sr25519;
await activate(mnemonic, keypairType as KeypairType);
const grid = await getGrid({ mnemonic: mnemonic, keypairType: keypairType as KeypairType });
const email = await readEmail(grid!);
if (!email) {
createCustomToast("Email is Missing! Please enter your Email.", ToastType.warning);
router.push({ path: "/tf-chain/your-profile" });
}
}
}
}
Expand Down

0 comments on commit 108d686

Please sign in to comment.