Skip to content
Snippets Groups Projects
Commit 4d42d05b authored by Thomas Roos's avatar Thomas Roos
Browse files

Laziest auth system working

parent d7a7d1d4
No related branches found
No related tags found
No related merge requests found
from os import path
from os.path import abspath, dirname, isfile
from flask import Flask
from flask_basicauth import BasicAuth
from . import db, api
......@@ -10,6 +11,14 @@ app = Flask(__name__,
static_folder= static_folder_path)
db.use_db()
####### Very Very VERY import to use this outsite dev/sandbox environment
app.config['BASIC_AUTH_USERNAME'] = 'test'
app.config['BASIC_AUTH_PASSWORD'] = 'zesje'
app.config['BASIC_AUTH_FORCE'] = False # Don't forget to set this to 'True'
basic_auth = BasicAuth(app)
app.register_blueprint(api.app, url_prefix='/api')
@app.route('/')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment