From addfa54b386f437d963d5f9ba20b9418c61a2f4c Mon Sep 17 00:00:00 2001 From: Denes Surman Date: Fri, 28 Oct 2016 05:45:12 +0200 Subject: [PATCH] Adding base of loginning --- app.py | 4 ++++ requirements.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/app.py b/app.py index 9817466..12c41ac 100644 --- a/app.py +++ b/app.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import connexion +from flask_login import LoginManager app = connexion.App(__name__, specification_dir='./swagger/') app.add_api('swagger.yaml', @@ -8,5 +9,8 @@ app.add_api('swagger.yaml', 'title': 'Rubber Duck Booking Tool' }) +login_manager = LoginManager() +#login_manager.init_app(app) + if __name__ == '__main__': app.run(port=8080) diff --git a/requirements.txt b/requirements.txt index 92eee81..dee482b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ Flask==0.11.1 Flask-RESTful==0.3.5 connexion==1.0.129 gunicorn +flask-login