Not exactly using it. remove for now
This commit is contained in:
parent
bd12b2a18a
commit
7c7734c996
@ -26,15 +26,11 @@ def untaint(pattern, string):
|
||||
raise ValueError(f'"{string}" is tainted')
|
||||
|
||||
|
||||
def create_app(config=None):
|
||||
def create_app():
|
||||
app = Flask(__name__, instance_relative_config=True)
|
||||
|
||||
if config is None:
|
||||
# load the instance config, if it exists, when not testing
|
||||
app.config.from_pyfile('config.py', silent=True)
|
||||
else:
|
||||
# load the test config if passed in
|
||||
app.config.from_pyfile(config, silent=True)
|
||||
# load the instance config, if it exists, when not testing
|
||||
app.config.from_pyfile('config.py', silent=True)
|
||||
|
||||
@auth.verify_password
|
||||
def verify_password(username, password):
|
||||
|
Loading…
x
Reference in New Issue
Block a user