Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 35b432fee280612f37e039d2446faee990190eea 1 parent 764b443
Taylor Hughes authored
View
2  demos/auth/authdemo.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
2  demos/blog/blog.py
@@ -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,
)
View
2  demos/chat/chatdemo.py
@@ -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"),
View
2  demos/facebook/facebook.py
@@ -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"),
View
2  demos/websocket/chatdemo.py
@@ -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.
Something went wrong with that request. Please try again.