CLASSROOMIO-T-29: Limit org to one
Co-authored-by: Rotimi Best <[email protected]> Merge-request: CLASSROOMIO-MR-4 Merged-by: Digdippa Team <[email protected]>
This commit is contained in:
committed by
Space Cloud
co-authored by
Rotimi Best
parent
ae0462219b
commit
cfeaa17846
@@ -97,7 +97,10 @@
|
||||
// If user coming to login page, then
|
||||
if (_.isEmpty(orgRes.orgs)) {
|
||||
goto(ROUTE.ONBOARDING);
|
||||
} else if (['login', 'signup', 'onboarding'].includes(path)) {
|
||||
} else if (
|
||||
['login', 'signup', 'onboarding'].includes(path) ||
|
||||
path === '' // for home page
|
||||
) {
|
||||
// By default redirect to first organization
|
||||
goto(`/org/${orgRes.currentOrg.siteName}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user