Commits

Andriy Kornatskyy committed 0efe92c

Added default options for various cookies

  • Participants
  • Parent commits 45fcf16

Comments (0)

Files changed (1)

File src/wheezy/web/middleware/__init__.py

             options['translations_manager'] = TranslationsManager()
         if 'ticket' not in options:
             options['ticket'] = Ticket()
+
+        options.setdefault('AUTH_COOKIE', '_a')
+        options.setdefault('AUTH_COOKIE_DOMAIN', None)
+        options.setdefault('AUTH_COOKIE_PATH', '')
+        options.setdefault('AUTH_COOKIE_SECURE', False)
+
+        options.setdefault('XSRF_NAME', '_x')
+        options.setdefault('RESUBMISSION_NAME', '_c')
         return None
     return load