Ensure team authentication matches subdomain

This commit is contained in:
Tom Moor
2018-11-17 23:30:05 -08:00
parent 5d6dca0faa
commit 3c563e3001
4 changed files with 17 additions and 4 deletions

View File

@ -86,7 +86,7 @@ router.get('/', async ctx => {
const team = await Team.find({
where: { subdomain },
});
if (team && process.env.SUBDOMAINS_ENABLED) {
if (team && process.env.SUBDOMAINS_ENABLED === 'true') {
return renderpage(
ctx,
<SubdomainSignin