mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-12 05:24:18 -05:00
Auto-consent to the privacy policy if the user registered with terms
This commit is contained in:
parent
dfcad5fad5
commit
f9d34a763c
@ -460,6 +460,12 @@ class RegisterRestServlet(RestServlet):
|
|||||||
params.get("bind_msisdn")
|
params.get("bind_msisdn")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if auth_result and LoginType.TERMS in auth_result:
|
||||||
|
logger.info("User %s has consented to the privacy policy" % registered_user_id)
|
||||||
|
yield self.store.user_set_consent_version(
|
||||||
|
registered_user_id, self.hs.config.user_consent_version,
|
||||||
|
)
|
||||||
|
|
||||||
defer.returnValue((200, return_dict))
|
defer.returnValue((200, return_dict))
|
||||||
|
|
||||||
def on_OPTIONS(self, _):
|
def on_OPTIONS(self, _):
|
||||||
|
Loading…
Reference in New Issue
Block a user