Generate token for invite link if none (#8463)
Some checks are pending
CI / uitest-workspaces (push) Waiting to run
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions

Signed-off-by: Nikolay Chunosov <Chunosov.N@gmail.com>
This commit is contained in:
Chunosov 2025-04-04 02:52:56 +07:00 committed by GitHub
parent 8038a47bf2
commit b4518d23af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -802,6 +802,9 @@ export async function checkAutoJoin (
await db.updateWorkspaceRole(targetAccount.uuid, workspace.uuid, invite.role)
}
if (token === undefined || token === null) {
token = generateToken(targetAccount.uuid)
}
return await selectWorkspace(ctx, db, branding, token, { workspaceUrl: workspace.url, kind: 'external' })
}
}