- redirect after sign in/up to payment page

- extended /api/oasis/subscribe function
- setup:dev extended data
This commit is contained in:
Peter Papp
2021-03-24 11:38:15 +01:00
parent 1bb3ca4fb5
commit af79a28361
17 changed files with 1542 additions and 314 deletions

View File

@@ -16,9 +16,9 @@ const actions = {
.then((response) => {
resolve(response)
// Redirect user if is logged
if (router.currentRoute.name === 'SignIn')
router.push({name: 'Files'})
// Oasis redirection to setup plan process after sign in
if (response.data.data.attributes.role === 'user' && ! response.data.data.relationships.settings.data.attributes.payment_activation)
router.push({name: 'SetUpPlan'})
commit('RETRIEVE_USER', response.data)
@@ -29,7 +29,6 @@ const actions = {
if ([401, 403].includes(error.response.status)) {
commit('SET_AUTHORIZED', false)
//router.push({name: 'SignIn'})
}
}
)