mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-16 00:00:26 -05:00
send password in body of request
This commit is contained in:
parent
ccb31f2fb5
commit
a305a0963d
1 changed files with 3 additions and 2 deletions
|
@ -194,11 +194,12 @@ const transferHost = (password, newHostName, newHostId) =>
|
|||
const token = selectToken(state);
|
||||
newHostName = newHostName.trim();
|
||||
api({
|
||||
uri: `/studios/${studioId}/transfer/${newHostName}?password=${password}`,
|
||||
uri: `/studios/${studioId}/transfer/${newHostName}`,
|
||||
method: 'PUT',
|
||||
authentication: token,
|
||||
withCredentials: true,
|
||||
useCsrf: true
|
||||
useCsrf: true,
|
||||
json: {password: password}
|
||||
}, (err, body, res) => {
|
||||
const error = normalizeError(err, body, res);
|
||||
if (error) return reject(error);
|
||||
|
|
Loading…
Reference in a new issue