Commit a305a096 authored by Eric Rosenbaum's avatar Eric Rosenbaum

send password in body of request

parent ccb31f2f
...@@ -194,11 +194,12 @@ const transferHost = (password, newHostName, newHostId) => ...@@ -194,11 +194,12 @@ const transferHost = (password, newHostName, newHostId) =>
const token = selectToken(state); const token = selectToken(state);
newHostName = newHostName.trim(); newHostName = newHostName.trim();
api({ api({
uri: `/studios/${studioId}/transfer/${newHostName}?password=${password}`, uri: `/studios/${studioId}/transfer/${newHostName}`,
method: 'PUT', method: 'PUT',
authentication: token, authentication: token,
withCredentials: true, withCredentials: true,
useCsrf: true useCsrf: true,
json: {password: password}
}, (err, body, res) => { }, (err, body, res) => {
const error = normalizeError(err, body, res); const error = normalizeError(err, body, res);
if (error) return reject(error); if (error) return reject(error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment