Merge pull request #3272 from matrix-org/rav/localpart_in_consent_uri

Use the localpart in the consent uri
This commit is contained in:
Richard van der Hoff 2018-05-23 16:29:44 +01:00 committed by GitHub
commit 23aa70cea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -574,7 +574,9 @@ class EventCreationHandler(object):
if u["consent_version"] == self.config.user_consent_version:
return
consent_uri = self._consent_uri_builder.build_user_consent_uri(user_id)
consent_uri = self._consent_uri_builder.build_user_consent_uri(
requester.user.localpart,
)
msg = self.config.block_events_without_consent_error % {
'consent_uri': consent_uri,
}