Added change password to user settings

This commit is contained in:
Syldexia 2018-05-21 23:01:09 +01:00
parent f06fef26b1
commit e0ba6a5876
5 changed files with 70 additions and 6 deletions

View file

@ -62,6 +62,7 @@ const backendInteractorService = (credentials) => {
const followImport = ({params}) => apiService.followImport({params, credentials})
const deleteAccount = ({password}) => apiService.deleteAccount({credentials, password})
const changePassword = ({password, newPassword, newPasswordConfirmation}) => apiService.changePassword({credentials, password, newPassword, newPasswordConfirmation})
const backendInteractorServiceInstance = {
fetchStatus,
@ -85,7 +86,8 @@ const backendInteractorService = (credentials) => {
updateProfile,
externalProfile,
followImport,
deleteAccount
deleteAccount,
changePassword
}
return backendInteractorServiceInstance