fix(fastapi): fix User.login signature typing

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-10-28 07:05:42 -07:00
parent 034288711b
commit 1f2347c6b4
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -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