1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

All user_consent config must be disabled

This commit is contained in:
Hugh Nimmo-Smith
2023-08-17 18:24:15 +01:00
committed by Quentin Gliech
parent 95bff53b4f
commit debf5e0ac7
2 changed files with 3 additions and 2 deletions

View File

@@ -78,8 +78,8 @@ export async function advisor(argv?: string[]): Promise<void> {
if (synapseConfig.enable_registration_captcha) { 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"); 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) { if (synapseConfig.user_consent) {
warn("Synapse config has user_consent.require_at_registration enabled which will need to be disabled after migration"); 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")); const usersWithoutEmailAddress = await count(synapse.count("*").from<SUser>("users").leftOuterJoin<SUserThreePid>("user_threepids", "users.name", "user_threepids.user_id").whereNull("user_threepids.user_id"));

View File

@@ -48,4 +48,5 @@ export interface SynapseConfig {
}; };
enable_registration_captcha?: boolean; enable_registration_captcha?: boolean;
enable_registration?: boolean; enable_registration?: boolean;
user_consent?: {};
} }