From 7717eb1656c1ca5880943a85bf9590400f5005de Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Mon, 31 Dec 2012 12:05:07 -0800 Subject: [PATCH] removed deprecation warning in Flask-Login initialization --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index f5a8a91..217210a 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -10,7 +10,7 @@ app = Flask(__name__) app.config.from_object('config') db = SQLAlchemy(app) lm = LoginManager() -lm.setup_app(app) +lm.init_app(app) lm.login_view = 'login' oid = OpenID(app, os.path.join(basedir, 'tmp')) mail = Mail(app)