1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

added action to perform send register request

This commit is contained in:
Fedor Katurov 2020-08-20 15:29:23 +07:00
parent 88ee0601c8
commit 3a11b01c99
6 changed files with 70 additions and 25 deletions

View file

@ -150,3 +150,9 @@ export const authSetRegisterSocialErrors = (
type: AUTH_USER_ACTIONS.SET_REGISTER_SOCIAL_ERRORS,
errors,
});
export const authSendRegisterSocial = (username: string, password: string) => ({
type: AUTH_USER_ACTIONS.SEND_REGISTER_SOCIAL,
username,
password,
});

View file

@ -35,6 +35,7 @@ export const AUTH_USER_ACTIONS = {
SET_REGISTER_SOCIAL: 'SET_REGISTER_SOCIAL',
SET_REGISTER_SOCIAL_ERRORS: 'SET_REGISTER_SOCIAL_ERRORS',
SEND_REGISTER_SOCIAL: 'SEND_REGISTER_SOCIAL',
};
export const USER_ERRORS = {