mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
UI for restricting permissions on /-/create-token, refs #1947
Also fixes test failures I introduced in #1951
This commit is contained in:
parent
fdf7c27b54
commit
d98a8effb1
4 changed files with 150 additions and 47 deletions
|
|
@ -475,7 +475,7 @@ class Datasette:
|
|||
restrict_database: Optional[Dict[str, Iterable[str]]] = None,
|
||||
restrict_resource: Optional[Dict[str, Dict[str, Iterable[str]]]] = None,
|
||||
):
|
||||
token = {"a": actor_id, "token": "dstok", "t": int(time.time())}
|
||||
token = {"a": actor_id, "t": int(time.time())}
|
||||
if expires_after:
|
||||
token["d"] = expires_after
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue