refactor: remove session_time from user.login

The parameter is not used, we can remove it and adapt the callers.

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-05-26 23:02:38 +02:00
parent 22fe4a988a
commit a7882c7533
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
4 changed files with 6 additions and 32 deletions

View file

@ -95,7 +95,7 @@ class User(Base):
def _login_approved(self, request: Request):
return not is_banned(request) and not self.Suspended
def login(self, request: Request, password: str, session_time: int = 0) -> str:
def login(self, request: Request, password: str) -> str:
"""Login and authenticate a request."""
from aurweb import db