|
|
@ -15,7 +15,7 @@ function readEmail () { |
|
|
|
|
|
|
|
async function getVerificationToken (url, email) { |
|
|
|
const data = JSON.stringify({ email }); |
|
|
|
const res = await fetch(url + '/registration', { |
|
|
|
const res = await fetch(`${url}/now/registration`, { |
|
|
|
method: 'POST', |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json', |
|
|
@ -38,7 +38,7 @@ async function verify (url, email, verificationToken) { |
|
|
|
token: verificationToken |
|
|
|
}; |
|
|
|
|
|
|
|
const res = await fetch(`${url}/registration/verify?${stringifyQuery(query)}`); |
|
|
|
const res = await fetch(`${url}/now/registration/verify?${stringifyQuery(query)}`); |
|
|
|
const body = await res.json(); |
|
|
|
return body.token; |
|
|
|
} |
|
|
|