remove unused flask_httpauth module
This commit is contained in:
@@ -17,7 +17,6 @@ from flask import (
|
||||
session,
|
||||
url_for,
|
||||
)
|
||||
from flask_httpauth import HTTPBasicAuth
|
||||
|
||||
from home_stream.helpers import (
|
||||
file_type,
|
||||
@@ -26,11 +25,8 @@ from home_stream.helpers import (
|
||||
secure_path,
|
||||
serve_via_gunicorn,
|
||||
validate_user,
|
||||
verify_password,
|
||||
)
|
||||
|
||||
auth = HTTPBasicAuth()
|
||||
|
||||
|
||||
def create_app(config_path: str) -> Flask:
|
||||
"""Create a Flask application instance."""
|
||||
@@ -42,7 +38,6 @@ def create_app(config_path: str) -> Flask:
|
||||
|
||||
def init_routes(app: Flask):
|
||||
"""Initialize routes for the Flask application."""
|
||||
auth.verify_password(verify_password)
|
||||
|
||||
@app.context_processor
|
||||
def inject_auth():
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
"""WSGI entry point for the Home Stream application."""
|
||||
|
||||
from home_stream.app import create_app as build_app
|
||||
from .app import create_app as build_app
|
||||
|
||||
|
||||
def create_app(config_path):
|
||||
|
||||
Reference in New Issue
Block a user