Commit a74f9e85 authored by Nastassia Danilova's avatar Nastassia Danilova

Merge branch 'master' into feat/revoke-token

parents d1694634 e526f19a
Pipeline #29542 passed with stages
in 6 minutes and 48 seconds
......@@ -72,6 +72,26 @@ const resetPassword = async ({ config, queries }) => {
})
}
const changePassword = async ({ config, params }) => utils.request({
method: 'POST',
config,
url: `api/pleroma/change_password`,
body: JSON.stringify(params),
headers: {
'Content-Type': 'application/json'
}
})
const changeEmail = async ({ config, params }) => utils.request({
method: 'POST',
config,
url: `/api/pleroma/change_email`,
body: JSON.stringify(params),
headers: {
'Content-Type': 'application/json'
}
})
const revokeToken = async ({ config, params }) => utils.request({
url: `/oauth/revoke`,
method: 'POST',
......@@ -87,6 +107,8 @@ const oauth = {
getTokenWithCode,
getTokenWithPassword,
resetPassword,
changePassword,
changeEmail,
revokeToken
}
......
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