Browse Source

Make session shared across domains too

mistress
Daniel Muckerman 3 years ago
parent
commit
5bb33b681e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      accounts/__init__.py

+ 1
- 0
accounts/__init__.py View File

@ -30,6 +30,7 @@ app.config['LDAP_OPENLDAP'] = True
app.config['LDAP_USER_OBJECT_FILTER'] = '(&(objectclass=posixAccount)(uid=%s))'
# Login cookies
app.config['SESSION_COOKIE_DOMAIN'] = os.environ.get('COOKIE_DOMAIN')
app.config['REMEMBER_COOKIE_DOMAIN'] = os.environ.get('COOKIE_DOMAIN')
db = SQLAlchemy(app)

Loading…
Cancel
Save