Implement a Jinja2 filter to extract localparts from email addresses (#12212)

This commit is contained in:
Brendan Abolivier 2022-03-11 16:15:11 +01:00 committed by GitHub
parent 4a53f35737
commit e6a106fd5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 2 deletions

View file

@ -183,7 +183,8 @@ class OIDCConfig(Config):
# localpart_template: Jinja2 template for the localpart of the MXID.
# If this is not set, the user will be prompted to choose their
# own username (see the documentation for the
# 'sso_auth_account_details.html' template).
# 'sso_auth_account_details.html' template). This template can
# use the 'localpart_from_email' filter.
#
# confirm_localpart: Whether to prompt the user to validate (or
# change) the generated localpart (see the documentation for the