added reset PWD API

This commit is contained in:
victorAnumudu
2024-12-18 09:18:39 +01:00
parent c8cfea9db6
commit d0e7bb7207
4 changed files with 92 additions and 63 deletions
+9 -1
View File
@@ -50,7 +50,7 @@ export const loginUser = (reqData) => {
return postAuxEnd('/panel/auth/login', postData, false)
}
// FUNCTION TO LOGIN USER IN
// FUNCTION TO REGISTER USER
export const signUpUser = (reqData) => {
let postData = {
...reqData
@@ -59,6 +59,14 @@ export const signUpUser = (reqData) => {
}
// FUNCTION TO RESET USER PASSWORD
export const recoverPWD = (reqData) => {
let postData = {
...reqData
}
return postAuxEnd('/panel/auth/reset', postData, false)
}
// FUNCTION TO GET DASHBOARD DATA
export const accountDashboard = () => {
return getAuxEnd(`/panel/account/dash`)