From 7d2d1b19a4699dca917add79f0a921651accbb36 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 6 Jun 2021 14:56:55 +0530 Subject: init flask mailman --- app/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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() -- cgit v1.2.3