mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-06-30 23:12:16 +02:00
Fix: blocked message in sign up page
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -302,7 +302,7 @@
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
body: JSON.stringify({ action: 'send_otp', email: email }),
|
body: JSON.stringify({ action: 'send_otp', username: username, email: email }),
|
||||||
})
|
})
|
||||||
.then(function (r) {
|
.then(function (r) {
|
||||||
return r.json();
|
return r.json();
|
||||||
@@ -337,7 +337,11 @@
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
body: JSON.stringify({ action: 'send_otp', email: state.email }),
|
body: JSON.stringify({
|
||||||
|
action: 'send_otp',
|
||||||
|
username: state.username,
|
||||||
|
email: state.email,
|
||||||
|
}),
|
||||||
})
|
})
|
||||||
.then(function (r) {
|
.then(function (r) {
|
||||||
return r.json();
|
return r.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user