Skip to content
Snippets Groups Projects
Unverified Commit 23aa70ce authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

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

Use the localpart in the consent uri
parents 043f05a0 a0b3946f
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment