From 7c5dd6ffb85f208632f7a2018a922b5ef2083c18 Mon Sep 17 00:00:00 2001
From: anoadragon453
Turns a mxc://
URL for media content into an HTTP(S) one using the homeserver's
public_baseurl
configuration setting as the URL's base.
Example: message.sender_avatar_url|mxc_to_http(32,32)
localpart_from_email(address: str) -> str
+
+Returns the local part of an email address (e.g. alice
in alice@example.com
).
Example: user.email_address|localpart_from_email
Below are the templates Synapse will look for when generating the content of an email:
user_attributes
: an object containing details about the user that
we received from the IdP. May have the following attributes:
display_name
: the user's display nameemails
: a list of email addresseslocalpart
: the local part of the Matrix user ID to register,
+if localpart_template
is set in the mapping provider configuration (empty
+string if not)
The template should render a form which submits the following fields: