mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
datasette.set_actor_cookie() and datasette.delete_actor_cookie(), closes #1690
This commit is contained in:
parent
37873e02b0
commit
308c243cfd
4 changed files with 36 additions and 32 deletions
|
|
@ -279,9 +279,7 @@ def register_routes():
|
|||
# Mainly for the latest.datasette.io demo
|
||||
if request.method == "POST":
|
||||
response = Response.redirect("/")
|
||||
response.set_cookie(
|
||||
"ds_actor", datasette.sign({"a": {"id": "root"}}, "actor")
|
||||
)
|
||||
datasette.set_actor_cookie(response, {"id": "root"})
|
||||
return response
|
||||
return Response.html(
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue