join: migrate registration form to Forgejo backend
All checks were successful
/ preview (pull_request) Successful in 39s
All checks were successful
/ preview (pull_request) Successful in 39s
This commit is contained in:
parent
aec1460de9
commit
51cbf1e2fd
1 changed files with 4 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
||||||
async function checkDuplicate() {
|
async function checkDuplicate() {
|
||||||
var url='https://lab.ilot.io/api/v4/projects/99/issues';
|
var url='https://forge.ilot.io/api/v1/repos/ilot/registration/issues';
|
||||||
var email = document.getElementById("email").value;
|
var email = document.getElementById("email").value;
|
||||||
|
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
headers: {
|
headers: {
|
||||||
'PRIVATE-TOKEN': 'glpat-RaoZSW_3XMhkGr19k6Wv',
|
'authorization': 'token b8d8617bb6049c0e47b7bba5cd0931799f54609c',
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createIssue() {
|
async function createIssue() {
|
||||||
var baseurl = 'https://lab.ilot.io/api/v4/projects/99/issues?&labels=Request';
|
var baseurl = 'https://forge.ilot.io/api/v1/repos/ilot/registration/issues';
|
||||||
var mathspamtrap = document.getElementById("math-spam-trap").value;
|
var mathspamtrap = document.getElementById("math-spam-trap").value;
|
||||||
var agreetoterms = document.getElementById("agree-to-terms").checked;
|
var agreetoterms = document.getElementById("agree-to-terms").checked;
|
||||||
var email = document.getElementById("email").value;
|
var email = document.getElementById("email").value;
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'PRIVATE-TOKEN': 'glpat-RaoZSW_3XMhkGr19k6Wv',
|
'authorization': 'token b8d8617bb6049c0e47b7bba5cd0931799f54609c',
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue