mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04: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