mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: register pages routes guards.
feat: retrieve all organizations details to authenticated user. feat: redux organization reducers and actions.
This commit is contained in:
@@ -77,17 +77,12 @@ function RegisterUserForm({ requestRegister, requestLogin }) {
|
||||
onSubmit: (values, { setSubmitting, setErrors }) => {
|
||||
requestRegister(values)
|
||||
.then((response) => {
|
||||
// AppToaster.show({
|
||||
// message: formatMessage({
|
||||
// id: 'welcome_organization_account_has_been_created',
|
||||
// }),
|
||||
// intent: Intent.SUCCESS,
|
||||
// });
|
||||
requestLogin({
|
||||
crediential: values.email,
|
||||
password: values.password,
|
||||
})
|
||||
.then(() => {
|
||||
history.push('/register/subscription');
|
||||
setSubmitting(false);
|
||||
})
|
||||
.catch((errors) => {
|
||||
@@ -98,7 +93,6 @@ function RegisterUserForm({ requestRegister, requestLogin }) {
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
});
|
||||
// history.push('/auth/login');
|
||||
})
|
||||
.catch((errors) => {
|
||||
if (errors.some((e) => e.type === 'PHONE_NUMBER_EXISTS')) {
|
||||
|
||||
Reference in New Issue
Block a user