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