Signing up for the API work again

- Can use the same email more than once, the only difference is that it wont create a new key, only a new link to the key
This commit is contained in:
Kasper Rynning-Tønnesen
2018-06-04 16:21:36 +02:00
parent f952f037e8
commit c7938f010d
3 changed files with 57 additions and 52 deletions

View File

@@ -24,9 +24,11 @@ window.addEventListener("DOMContentLoaded", function(e) {
Helper.toggleClass(".submit", "disabled");
Helper.removeClass(".full-form-token", "hide");
var captcha_response = grecaptcha.getResponse();
console.log(captcha_response);
Helper.ajax({
type: "POST",
url: "/api/apply",
headers: {"Content-Type": "application/json;charset=UTF-8"},
data: {
origin: origin,
email: email,