|
|
@@ -100,7 +100,12 @@ function hideGlobalLoader() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-document.addEventListener('DOMContentLoaded', function () {
|
|
|
+document.addEventListener('DOMContentLoaded', async function () {
|
|
|
+ const nextIdResponse = await fetch('/api/users/next');
|
|
|
+ if (nextIdResponse.ok) {
|
|
|
+ const nextIdData = await nextIdResponse.json();
|
|
|
+ document.getElementById('successMessage').innerHTML = `Revisa tu correo electronico para establecer tu PIN<br/><br/>serias ser el <strong>${nextIdData.next_id} usuario 🫢</strong>`;
|
|
|
+ }
|
|
|
createGlobalLoader();
|
|
|
hideGlobalLoader();
|
|
|
// showRegisterModal();
|