mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-12 12:00:37 +08:00
Add mail context processory
This commit is contained in:
@@ -253,6 +253,9 @@ class _SecurityState(object):
|
||||
def send_login_context_processor(self, fn):
|
||||
self._add_ctx_processor('send_login', fn)
|
||||
|
||||
def mail_context_processor(self, fn):
|
||||
self._add_ctx_processor('mail', fn)
|
||||
|
||||
|
||||
class Security(object):
|
||||
"""The :class:`Security` class initializes the Flask-Security extension.
|
||||
|
||||
Reference in New Issue
Block a user