Add login method
This commit is contained in:
@@ -45,7 +45,9 @@ def install():
|
|||||||
'libpysal',
|
'libpysal',
|
||||||
'spopt',
|
'spopt',
|
||||||
'shapely',
|
'shapely',
|
||||||
'geopandas'
|
'geopandas',
|
||||||
|
'passlib',
|
||||||
|
'jose'
|
||||||
]
|
]
|
||||||
|
|
||||||
if minor == 4:
|
if minor == 4:
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -33,6 +33,8 @@ import time
|
|||||||
from logging.handlers import TimedRotatingFileHandler
|
from logging.handlers import TimedRotatingFileHandler
|
||||||
from fastapi import FastAPI, APIRouter, Depends, HTTPException, status, Request
|
from fastapi import FastAPI, APIRouter, Depends, HTTPException, status, Request
|
||||||
from fastapi.security import OAuth2PasswordBearer
|
from fastapi.security import OAuth2PasswordBearer
|
||||||
|
from jose import jwt
|
||||||
|
from passlib.context import CryptContext
|
||||||
|
|
||||||
JUNCTION = 0
|
JUNCTION = 0
|
||||||
RESERVOIR = 1
|
RESERVOIR = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user