PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.15.4
GiveWP – Donation Plugin and Fundraising Platform v4.15.4
4.18.0.1 4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 All 258 releases
give / src / DonorDashboards / resources / js / app / components / auth-modal / utils / index.js

index.js in GiveWP – Donation Plugin and Fundraising Platform 4.15.4, at src/DonorDashboards/resources/js/app/components/auth-modal/utils/index.js

42 lines 989 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import axios from 'axios';
2 import {getAPIRoot} from '../../../utils';
3
4 export const loginWithAPI = ({login, password}) => {
5 return axios
6 .post(
7 getAPIRoot() + 'give-api/v2/donor-dashboard/login',
8 {
9 login,
10 password,
11 },
12 {}
13 )
14 .then((response) => response.data);
15 };
16
17 export const verifyEmailWithAPI = ({email, recaptcha}) => {
18 return axios
19 .post(
20 getAPIRoot() + 'give-api/v2/donor-dashboard/verify-email',
21 {
22 email,
23 'g-recaptcha-response': recaptcha,
24 },
25 {}
26 )
27 .then((response) => response.data);
28 };
29
30
31 export const resetPasswordWithAPI = (email) => {
32 return axios
33 .post(
34 getAPIRoot() + 'give-api/v2/donor-dashboard/reset-password',
35 {
36 email,
37 },
38 {}
39 )
40 .then((response) => response.data);
41 };
42