Fix for remote login

This commit is contained in:
Ozzie Isaacs
2021-10-10 10:26:01 +02:00
parent ac54899415
commit cd53d57516
2 changed files with 36 additions and 2 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ from babel import Locale as LC
from babel import negotiate_locale
from babel.core import UnknownLocaleError
from flask import Flask, request, g
from flask_login import LoginManager
from .MyLoginManager import MyLoginManager
from flask_babel import Babel
from flask_principal import Principal
@@ -75,7 +75,7 @@ app.config.update(
)
lm = LoginManager()
lm = MyLoginManager()
lm.login_view = 'web.login'
lm.anonymous_user = ub.Anonymous
lm.session_protection = 'strong'