mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
WIP feature/Register
This commit is contained in:
14
client/src/store/Invite/invite.action.js
Normal file
14
client/src/store/Invite/invite.action.js
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
import ApiService from 'services/ApiService';
|
||||
|
||||
export const submitInvite = ({ form, token }) => {
|
||||
return (dispatch) => {
|
||||
return ApiService.post(`/invite/accept/${token}`, { ...form });
|
||||
};
|
||||
};
|
||||
|
||||
export const submitSendInvite = ({ form }) => {
|
||||
return (dispatch) => {
|
||||
return ApiService.post('invite', { form });
|
||||
};
|
||||
};
|
||||
7
client/src/store/resetPassword/resetPassword.action.js
Normal file
7
client/src/store/resetPassword/resetPassword.action.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import ApiService from 'services/ApiService';
|
||||
|
||||
export const submitResetPassword = (password) => {
|
||||
return (dispatch) => {
|
||||
return ApiService.post('auth/reset_password', password);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user