Skip to content

Commit

Permalink
Fix documentation for fernet key
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 20, 2015
1 parent c2395b7 commit c0548a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ A trivial usage example::
@asyncio.coroutine
def init(loop):
app = web.Application(middlewares=[session_middleware(
EncryptedCookieStorage(b'Sixteen byte key'))])
EncryptedCookieStorage(b'Thirty two length bytes key.'))])
app.router.add_route('GET', '/', handler)
srv = yield from loop.create_server(
app.make_handler(), '0.0.0.0', 8080)
Expand Down
2 changes: 1 addition & 1 deletion docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ To use the storage you should push it into

app = aiohttp.web.Application(middlewares=[
aiohttp_session.cookie_storage.EncryptedCookieStorage(
b'Sixteen byte key'])
b'Thirty two length bytes key.'])

.. class:: EncryptedCookieStorage(secret_key, *, \
cookie_name="AIOHTTP_SESSION", \
Expand Down

0 comments on commit c0548a1

Please sign in to comment.