Add login method

This commit is contained in:
DingZQ
2025-06-22 16:02:50 +08:00
parent 058a517280
commit 4a54659360
2 changed files with 5 additions and 1 deletions

View File

@@ -45,7 +45,9 @@ def install():
'libpysal',
'spopt',
'shapely',
'geopandas'
'geopandas',
'passlib',
'jose'
]
if minor == 4:

View File

@@ -33,6 +33,8 @@ import time
from logging.handlers import TimedRotatingFileHandler
from fastapi import FastAPI, APIRouter, Depends, HTTPException, status, Request
from fastapi.security import OAuth2PasswordBearer
from jose import jwt
from passlib.context import CryptContext
JUNCTION = 0
RESERVOIR = 1