diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-06 14:56:55 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-06 14:56:55 +0530 |
commit | 7d2d1b19a4699dca917add79f0a921651accbb36 (patch) | |
tree | 66e7e41d0ce25b974353eb85a116e274694b3c5f | |
parent | 5812a04d2f5bcb20b09047bf83ae91b25fd41590 (diff) |
init flask mailman
-rw-r--r-- | app/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/__init__.py b/app/__init__.py index b006c8f..9d76abe 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -4,6 +4,7 @@ from flask_bcrypt import Bcrypt from flask.cli import AppGroup from flask_sqlalchemy import SQLAlchemy import flask_login +from flask_mailman import Mail from authlib.integrations.flask_client import OAuth @@ -14,6 +15,7 @@ bcrypt = Bcrypt(app) db = SQLAlchemy(app) login_manager = flask_login.LoginManager() oauth = OAuth(app) +mail = Mail(app) oauth.register( name="google", @@ -38,6 +40,7 @@ def make_superuser_database(): email=app.config["ADMIN_EMAIL"], password=app.config["ADMIN_PASSWORD"], role="SUPERUSER") + user.confirmation = True db.session.add(user) db.session.commit() |