mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
publish: 5.5a6
This commit is contained in:
parent
a7965e6282
commit
b7dc55e031
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
[tool.poetry]
|
||||
name = "royalnet"
|
||||
version = "5.5a5"
|
||||
version = "5.5a6"
|
||||
description = "A multipurpose bot and web framework"
|
||||
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
||||
license = "AGPL-3.0+"
|
||||
|
|
|
@ -26,7 +26,7 @@ class ApiLoginRoyalnetStar(ApiStar):
|
|||
pswd_check = user.test_password(password)
|
||||
if not pswd_check:
|
||||
raise ApiError("Invalid password")
|
||||
token: Token = TokenT.generate(user=user, expiration_delta=datetime.timedelta(days=7))
|
||||
token: Token = TokenT.generate(alchemy=self.alchemy, user=user, expiration_delta=datetime.timedelta(days=7))
|
||||
session.add(token)
|
||||
await ru.asyncify(session.commit)
|
||||
response = token.json()
|
||||
|
|
|
@ -1 +1 @@
|
|||
semantic = "5.5a5"
|
||||
semantic = "5.5a6"
|
||||
|
|
Loading…
Reference in a new issue