mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 22:12:56 +00:00
28 lines
1006 B
Diff
28 lines
1006 B
Diff
diff --git a/cps/__init__.py b/cps/__init__.py
|
|
index f4f8dbf2..7377acdf 100644
|
|
--- a/cps/__init__.py
|
|
+++ b/cps/__init__.py
|
|
@@ -151,7 +151,6 @@ def create_app():
|
|
|
|
lm.login_view = 'web.login'
|
|
lm.anonymous_user = ub.Anonymous
|
|
- lm.session_protection = 'strong' if config.config_session == 1 else "basic"
|
|
|
|
db.CalibreDB.update_config(config)
|
|
db.CalibreDB.setup_db(config.config_calibre_dir, cli_param.settings_path)
|
|
diff --git a/cps/admin.py b/cps/admin.py
|
|
index 045a9523..825a28af 100644
|
|
--- a/cps/admin.py
|
|
+++ b/cps/admin.py
|
|
@@ -102,10 +102,6 @@ def admin_required(f):
|
|
|
|
@admi.before_app_request
|
|
def before_request():
|
|
- if not ub.check_user_session(current_user.id,
|
|
- flask_session.get('_id')) and 'opds' not in request.path \
|
|
- and config.config_session == 1:
|
|
- logout_user()
|
|
g.constants = constants
|
|
g.google_site_verification = os.getenv('GOOGLE_SITE_VERIFICATION', '')
|
|
g.allow_registration = config.config_public_reg
|