Permalink
Browse files

Make it obvious to anyone reading copy-pasted example code that the c…

…ookie secret is not suitable for production use.
  • Loading branch information...
1 parent 764b443 commit 35b432fee280612f37e039d2446faee990190eea Taylor Hughes committed Sep 1, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 demos/auth/authdemo.py
  2. +1 −1 demos/blog/blog.py
  3. +1 −1 demos/chat/chatdemo.py
  4. +1 −1 demos/facebook/facebook.py
  5. +1 −1 demos/websocket/chatdemo.py
@@ -34,7 +34,7 @@ def __init__(self):
(r"/auth/logout", LogoutHandler),
]
settings = dict(
- cookie_secret="32oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
+ cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
login_url="/auth/login",
)
tornado.web.Application.__init__(self, handlers, **settings)
View
@@ -51,7 +51,7 @@ def __init__(self):
static_path=os.path.join(os.path.dirname(__file__), "static"),
ui_modules={"Entry": EntryModule},
xsrf_cookies=True,
- cookie_secret="11oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
+ cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
login_url="/auth/login",
autoescape=None,
)
@@ -38,7 +38,7 @@ def __init__(self):
(r"/a/message/updates", MessageUpdatesHandler),
]
settings = dict(
- cookie_secret="43oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
+ cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
login_url="/auth/login",
template_path=os.path.join(os.path.dirname(__file__), "templates"),
static_path=os.path.join(os.path.dirname(__file__), "static"),
@@ -39,7 +39,7 @@ def __init__(self):
(r"/auth/logout", AuthLogoutHandler),
]
settings = dict(
- cookie_secret="12oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
+ cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
login_url="/auth/login",
template_path=os.path.join(os.path.dirname(__file__), "templates"),
static_path=os.path.join(os.path.dirname(__file__), "static"),
@@ -39,7 +39,7 @@ def __init__(self):
(r"/chatsocket", ChatSocketHandler),
]
settings = dict(
- cookie_secret="43oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=",
+ cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
template_path=os.path.join(os.path.dirname(__file__), "templates"),
static_path=os.path.join(os.path.dirname(__file__), "static"),
xsrf_cookies=True,

0 comments on commit 35b432f

Please sign in to comment.