import {changePass} from "./requests";
import {actionPromise} from "./actionPromise";

export const actionChangePass = (login, password, newPassword) => async (dispatch) =>{
	return await dispatch(actionPromise('change', changePass(login, password, newPassword)))
}