1
Fork 0
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:
Steffo 2020-02-11 19:05:44 +01:00
parent a7965e6282
commit b7dc55e031
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
[tool.poetry] [tool.poetry]
name = "royalnet" name = "royalnet"
version = "5.5a5" version = "5.5a6"
description = "A multipurpose bot and web framework" description = "A multipurpose bot and web framework"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"] authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+" license = "AGPL-3.0+"

View file

@ -26,7 +26,7 @@ class ApiLoginRoyalnetStar(ApiStar):
pswd_check = user.test_password(password) pswd_check = user.test_password(password)
if not pswd_check: if not pswd_check:
raise ApiError("Invalid password") 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) session.add(token)
await ru.asyncify(session.commit) await ru.asyncify(session.commit)
response = token.json() response = token.json()

View file

@ -1 +1 @@
semantic = "5.5a5" semantic = "5.5a6"