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

Commit

Permalink
All user_consent config must be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Oct 3, 2023
1 parent d48d407 commit c7ad6b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/syn2mas/src/advisor.mts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ 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");
if (synapseConfig.user_consent) {
warn("Synapse config has user_consent configured 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"));
Expand Down
1 change: 1 addition & 0 deletions tools/syn2mas/src/types/SynapseConfig.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ export interface SynapseConfig {
};
enable_registration_captcha?: boolean;
enable_registration?: boolean;
user_consent?: {};
}

0 comments on commit c7ad6b0

Please sign in to comment.