Complete change password functionality
This commit is contained in:
@@ -2,7 +2,8 @@ import {
|
||||
SEND_REGISTER_REQUEST,
|
||||
SEND_EMAIL_VERIFICATION_REQUEST,
|
||||
SEND_LOGIN_REQUEST,
|
||||
SEND_LOGOUT_REQUEST
|
||||
SEND_LOGOUT_REQUEST,
|
||||
SEND_CHANGE_PASSWORD_REQUEST
|
||||
} from "../../constants/auth.constants";
|
||||
|
||||
export function sendRegisterRequest(postBody) {
|
||||
@@ -31,3 +32,10 @@ export function sendLogoutRequest() {
|
||||
type: SEND_LOGOUT_REQUEST
|
||||
}
|
||||
}
|
||||
|
||||
export function sendChangePasswordRequest(postBody) {
|
||||
return {
|
||||
type: SEND_CHANGE_PASSWORD_REQUEST,
|
||||
data: postBody
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user