feat: redirect on login based on group

This commit is contained in:
NGPixel
2020-07-19 15:13:35 -04:00
parent be499e5795
commit 10f17c5712
4 changed files with 17 additions and 4 deletions

View File

@@ -61,7 +61,7 @@
style='max-width: 600px;'
:disabled='group.id <= 2'
)
template(v-if='group.id > 2')
template(v-if='group.id !== 2')
v-divider
v-card-text
v-text-field(

View File

@@ -350,6 +350,7 @@ export default {
mustChangePwd
mustProvideTFA
continuationToken
redirect
}
}
}
@@ -386,6 +387,8 @@ export default {
if (loginRedirect) {
Cookies.remove('loginRedirect')
window.location.replace(loginRedirect)
} else if (respObj.redirect) {
window.location.replace(respObj.redirect)
} else {
window.location.replace('/')
}