mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-24 13:00:36 +08:00
Register mail as extension, for now
This commit is contained in:
+2
-1
@@ -81,7 +81,8 @@ def create_app(auth_config):
|
||||
app.debug = True
|
||||
app.config['SECRET_KEY'] = 'secret'
|
||||
|
||||
app.mail = Mail(app)
|
||||
mail = Mail(app)
|
||||
app.extensions['mail'] = mail
|
||||
|
||||
if auth_config:
|
||||
for key, value in auth_config.items():
|
||||
|
||||
Reference in New Issue
Block a user