Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
a305a096
Commit
a305a096
authored
Aug 19, 2021
by
Eric Rosenbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send password in body of request
parent
ccb31f2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/views/studio/lib/studio-member-actions.js
src/views/studio/lib/studio-member-actions.js
+3
-2
No files found.
src/views/studio/lib/studio-member-actions.js
View file @
a305a096
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment