feat: redirect on login based on group
This commit is contained in:
@@ -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(
|
||||
|
@@ -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('/')
|
||||
}
|
||||
|
Reference in New Issue
Block a user