From 42720679ae882c9cec2d4585668367159468b292 Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 01:25:07 +0200 Subject: [PATCH] Removed default login (fix #54) --- backend/src/app.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/backend/src/app.py b/backend/src/app.py index 8953a76..4a686d8 100644 --- a/backend/src/app.py +++ b/backend/src/app.py @@ -74,17 +74,6 @@ db.init_app(app) # Initializes CORS so that the api_tool can talk to the example app cors.init_app(app) -# Add users for the example -with app.app_context(): - db.create_all() - if db.session.query(User).filter_by(username='Yasoob').count() < 1: - db.session.add(User( - username='Yasoob', - password=guard.hash_password('strongpassword'), - roles='admin' - )) - db.session.commit() - @app.route('/api/login', methods=['POST']) def login():