Deepsource

This commit is contained in:
Michał Gdula 2023-04-12 15:30:54 +00:00
parent cc613f9fe9
commit ec2d1fbe8a
4 changed files with 17 additions and 16 deletions

View file

@ -75,9 +75,10 @@ def create_app(): # pylint: disable=R0914
migrate_upgrade(directory=MIGRATIONS_DIR)
# LOGIN MANAGER
# can also set session_protection to "strong"
# this would protect against session hijacking
login_manager.init_app(app)
login_manager.login_view = "gallery.index"
# login_manager.session_protection = "strong"
@login_manager.user_loader
def load_user(user_id):