1.优化验证

This commit is contained in:
李伟 2022-11-11 15:47:35 +08:00
parent 95e485d83e
commit 32af767a82
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,8 @@ router = APIRouter()
host = settings.REDIS_CONF.get('host')
port = settings.REDIS_CONF.get('port')
db = settings.REDIS_CONF.get('db')
redisdb = redis.Redis(host=host, port=port, db=db)
password = settings.REDIS_CONF.get('password')
redisdb = redis.Redis(host=host, port=port, db=db,password=password)
@router.post("/send_auth_code")
async def reset_password(request: Request,

View File

@ -26,7 +26,7 @@ db = Settings.REDIS_CONF.get('db')
clientMongo = Mongo.DATABASE_URI
password = Settings.REDIS_CONF.get('password')
# redisdb = redis.Redis(host=host, port=port, db=db,password=password)
redisdb = redis.Redis(host=host, port=port, db=db)
redisdb = redis.Redis(host=host, port=port, db=db,password=password)
myClient = pymongo.MongoClient(clientMongo)
def get_msec():