mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
22fe4a988a
commit
a7882c7533
4 changed files with 6 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue