0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-17 23:42:33 +01:00
Accidentally went straight to develop
This commit is contained in:
David Baker 2019-05-10 11:08:01 +01:00
parent 085ae346ac
commit c2bb7476c9

View file

@ -345,7 +345,7 @@ class RegisterRestServlet(RestServlet):
if self.hs.config.enable_registration_captcha: if self.hs.config.enable_registration_captcha:
# only support 3PIDless registration if no 3PIDs are required # only support 3PIDless registration if no 3PIDs are required
if not require_email and not require_msisdn: if not require_email and not require_msisdn:
flows.extend([[LoginType.RECAPTCHA, LoginType.DUMMY]]) flows.extend([[LoginType.RECAPTCHA]])
# only support the email-only flow if we don't require MSISDN 3PIDs # only support the email-only flow if we don't require MSISDN 3PIDs
if not require_msisdn: if not require_msisdn:
flows.extend([[LoginType.EMAIL_IDENTITY, LoginType.RECAPTCHA]]) flows.extend([[LoginType.EMAIL_IDENTITY, LoginType.RECAPTCHA]])