mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-27 16:10:11 +08:00
Fix documentation issue #145
This commit is contained in:
@@ -132,11 +132,11 @@ Overriding these templates is simple:
|
||||
Each template is passed a template context object that includes values for any
|
||||
links that are required in the email. If you require more values in the
|
||||
templates you can specify an email context processor with the
|
||||
``email_context_processor`` decorator. For example::
|
||||
``mail_context_processor`` decorator. For example::
|
||||
|
||||
security = Security(app, user_datastore)
|
||||
|
||||
# This processor is added to all emails
|
||||
@security.email_context_processor
|
||||
@security.mail_context_processor
|
||||
def security_mail_processor():
|
||||
return dict(hello="world")
|
||||
|
||||
Reference in New Issue
Block a user