hotfix
This commit is contained in:
parent
60229a49b3
commit
0fc4d96f25
@ -1093,7 +1093,7 @@
|
|||||||
" return hashlib.sha256(text.encode(\"utf-8\")).hexdigest()\n",
|
" return hashlib.sha256(text.encode(\"utf-8\")).hexdigest()\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"@router.post(\"/api/login\")\n",
|
"@app.post(\"/api/login\")\n",
|
||||||
"async def login(\n",
|
"async def login(\n",
|
||||||
" request: Request,\n",
|
" request: Request,\n",
|
||||||
" response: Response,\n",
|
" response: Response,\n",
|
||||||
|
|||||||
2
main.py
2
main.py
@ -804,7 +804,7 @@ def sha256(text: str) -> str:
|
|||||||
return hashlib.sha256(text.encode("utf-8")).hexdigest()
|
return hashlib.sha256(text.encode("utf-8")).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
@router.post("/api/login")
|
@app.post("/api/login")
|
||||||
async def login(
|
async def login(
|
||||||
request: Request,
|
request: Request,
|
||||||
response: Response,
|
response: Response,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user