2022-10-05 03:59:13 +00:00
|
|
|
diff --git a/cps/__init__.py b/cps/__init__.py
|
2023-06-01 12:11:53 +00:00
|
|
|
index 269e4aca..e2b828a9 100644
|
2022-10-05 03:59:13 +00:00
|
|
|
--- a/cps/__init__.py
|
|
|
|
+++ b/cps/__init__.py
|
2023-06-01 12:11:53 +00:00
|
|
|
@@ -150,7 +150,6 @@ def create_app():
|
|
|
|
|
2022-12-06 17:56:29 +00:00
|
|
|
lm.login_view = 'web.login'
|
|
|
|
lm.anonymous_user = ub.Anonymous
|
2023-06-01 12:11:53 +00:00
|
|
|
- lm.session_protection = 'strong' if config.config_session == 1 else "basic"
|
2022-10-05 03:59:13 +00:00
|
|
|
|
2023-06-01 12:11:53 +00:00
|
|
|
db.CalibreDB.update_config(config)
|
|
|
|
db.CalibreDB.setup_db(config.config_calibre_dir, cli_param.settings_path)
|
2022-10-05 03:59:13 +00:00
|
|
|
diff --git a/cps/admin.py b/cps/admin.py
|
2023-06-01 12:11:53 +00:00
|
|
|
index 20c58aac..99d2ad19 100644
|
2022-10-05 03:59:13 +00:00
|
|
|
--- a/cps/admin.py
|
|
|
|
+++ b/cps/admin.py
|
2023-06-01 12:11:53 +00:00
|
|
|
@@ -101,8 +101,6 @@ def admin_required(f):
|
|
|
|
|
|
|
|
@admi.before_app_request
|
|
|
|
def before_request():
|
2022-10-05 03:59:13 +00:00
|
|
|
- if not ub.check_user_session(current_user.id, flask_session.get('_id')) and 'opds' not in request.path:
|
|
|
|
- logout_user()
|
|
|
|
g.constants = constants
|
2023-06-01 12:11:53 +00:00
|
|
|
g.google_site_verification = os.getenv('GOOGLE_SITE_VERIFICATION','')
|
2022-10-05 03:59:13 +00:00
|
|
|
g.allow_registration = config.config_public_reg
|