Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Check for user_consent.require_at_registration=True
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Aug 17, 2023
1 parent e79be6c commit 78612b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/syn2mas/src/advisor.mts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export async function advisor(argv?: string[]): Promise<void> {
if (synapseConfig.enable_registration_captcha) {
error("Synapse config has registration CAPTCHA enabled which isn't supported by MAS: https://github.com/matrix-org/matrix-authentication-service/issues/138");
}
if (synapseConfig.user_consent?.require_at_registration) {
warn("Synapse config has user_consent.require_at_registration enabled which will need to be disabled after migration");
}

const usersWithoutEmailAddress = await count(synapse.count("*").from<SUser>("users").leftOuterJoin<SUserThreePid>("user_threepids", "users.name", "user_threepids.user_id").whereNull("user_threepids.user_id"));
if (usersWithoutEmailAddress > 0) {
Expand Down

0 comments on commit 78612b5

Please sign in to comment.