- Implemented the initial version of the web interface. refactor: Begin Telegram bot refactoring - Started restructuring the bot’s code for better maintainability. chore: Migrate to Flask project structure - Reorganized the application to follow Flask's project structure. cleanup: Extensive code cleanup - Removed redundant code and improved readability. Signed-off-by: UdoChudo <stream@udochudo.ru>
10 lines
358 B
Python
10 lines
358 B
Python
# backend/ext/auth_ext.py (опционально, если хочешь инициализировать через factory)
|
|
from flask_login import LoginManager
|
|
from app.services.auth_service import init_ldap
|
|
|
|
login_manager = LoginManager()
|
|
|
|
def init_auth(app):
|
|
login_manager.init_app(app)
|
|
login_manager.login_view = 'auth.login'
|
|
init_ldap(app) |