mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(fastapi): fix User.login signature typing
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
034288711b
commit
1f2347c6b4
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@ 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=0):
|
||||
def login(self, request: Request, password: str,
|
||||
session_time: int = 0) -> str:
|
||||
""" Login and authenticate a request. """
|
||||
|
||||
from aurweb import db
|
||||
|
|
Loading…
Add table
Reference in a new issue