Fix: blocked message in sign up page

This commit is contained in:
hyzen
2026-06-13 00:25:17 +05:30
parent c6746c91b1
commit 6b93a6b3bf
2 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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();