Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use.
This commit is contained in:
parent
764b443baa
commit
35b432fee2
|
@ -34,7 +34,7 @@ class Application(tornado.web.Application):
|
|||
(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)
|
||||
|
|
|
@ -51,7 +51,7 @@ class Application(tornado.web.Application):
|
|||
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 @@ class Application(tornado.web.Application):
|
|||
(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 @@ class Application(tornado.web.Application):
|
|||
(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 @@ class Application(tornado.web.Application):
|
|||
(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,
|
||||
|
|
Loading…
Reference in New Issue