Commit e526f19a authored by Shpuld Shpludson's avatar Shpuld Shpludson

Merge branch 'feat/change-email-password-api' into 'master'

changePassword, changeEmail API

See merge request !43
parents 6a993c66 f1668b2b
Pipeline #29505 failed with stages
in 52 seconds
......@@ -72,11 +72,33 @@ 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 oauth = {
createApp,
getTokenWithCode,
getTokenWithPassword,
resetPassword
resetPassword,
changePassword,
changeEmail
}
export default oauth
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