nice success message
This commit is contained in:
parent
564dcb8083
commit
bee8218e40
2 changed files with 19 additions and 9 deletions
|
|
@ -48,13 +48,19 @@ async function acceptInvite() {
|
|||
return;
|
||||
}
|
||||
|
||||
const verifyResponse = await fetch("/api/signup/nostr-verify", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(signedEvent),
|
||||
});
|
||||
|
||||
if (verifyResponse.status === 200) {
|
||||
|
||||
let verifyResponse;
|
||||
try {
|
||||
verifyResponse = await fetch("/api/signup/nostr-verify", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(signedEvent),
|
||||
});
|
||||
} catch (error) {
|
||||
console.log(`Something went wrong: ${error}`);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (verifyResponse.ok) {
|
||||
document.querySelector('#sign-up-success').style.display = 'block';
|
||||
}
|
||||
}
|
||||
|
|
@ -42,6 +42,10 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="sign-up-success" style="display:none">
|
||||
<p>¡Bien! Hemos dado de alta tu clave de Nostr.</p>
|
||||
<p>Te vamos a redirigir a la seca, espera un momento.</p>
|
||||
</div>
|
||||
<p>¿No tienes cuenta de Nostr? <a href="https://start.njump.me/" target="_blank" rel="noopener noreferrer">Crea
|
||||
una aquí.</a< /p>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue