diff --git a/pyproject.toml b/pyproject.toml index 6f229d79..ee52c336 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ [tool.poetry] name = "royalnet" - version = "5.5a5" + version = "5.5a6" description = "A multipurpose bot and web framework" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalnet/backpack/stars/api_login_royalnet.py b/royalnet/backpack/stars/api_login_royalnet.py index 2340d427..32c04d28 100644 --- a/royalnet/backpack/stars/api_login_royalnet.py +++ b/royalnet/backpack/stars/api_login_royalnet.py @@ -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() diff --git a/royalnet/version.py b/royalnet/version.py index 4ebf3c24..3571209e 100644 --- a/royalnet/version.py +++ b/royalnet/version.py @@ -1 +1 @@ -semantic = "5.5a5" +semantic = "5.5a6"