mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
dstoke_ prefix for tokens
Refs https://github.com/simonw/datasette/issues/1852#issuecomment-1291290451
This commit is contained in:
parent
42f8b402e6
commit
68ccb7578b
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ class CreateTokenView(BaseView):
|
|||
"a": request.actor,
|
||||
"e": (int(time.time()) + expires) if expires else None,
|
||||
}
|
||||
token = self.ds.sign(token_bits, "token")
|
||||
token = "dstok_{}".format(self.ds.sign(token_bits, "token"))
|
||||
return await self.render(
|
||||
["create_token.html"],
|
||||
request,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue