|
|
@ -101,13 +101,16 @@ $(document).ready( () => { |
|
|
|
body[name] = input.val() |
|
|
|
}) |
|
|
|
|
|
|
|
Apis.addUser(body).then( (data) => { |
|
|
|
Apis.notification("Account aggiunto correttamente!") |
|
|
|
}).catch( (error) => { |
|
|
|
console.error(error) |
|
|
|
Apis.notification("ATTENZIONE: L'utente che stai cercando di inserire è già presente nel database") |
|
|
|
grecaptcha.ready(() => { |
|
|
|
grecaptcha.execute(ENV.RECAPTCHA_SITE_KEY, {action: 'submit'}).then((token) => { |
|
|
|
Apis.addUser(body).then( (data) => { |
|
|
|
Apis.notification("Account aggiunto correttamente!") |
|
|
|
}).catch( (error) => { |
|
|
|
console.error(error) |
|
|
|
Apis.notification("ATTENZIONE: L'utente che stai cercando di inserire è già presente nel database") |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|