mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 02:10:55 +00:00
Auto-consent to the privacy policy if the user registered with terms
This commit is contained in:
parent
dfcad5fad5
commit
f9d34a763c
1 changed files with 6 additions and 0 deletions
|
@ -460,6 +460,12 @@ class RegisterRestServlet(RestServlet):
|
|||
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))
|
||||
|
||||
def on_OPTIONS(self, _):
|
||||
|
|
Loading…
Reference in a new issue