fix
This commit is contained in:
parent
4cd1f597e8
commit
ce16d4ea1b
@ -1951,8 +1951,8 @@
|
||||
" )\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"@app.post(\"/api/v2/reset-password\")\n",
|
||||
"async def reset_password_user(\n",
|
||||
"@app.post(\"/api/reset-hash-password\")\n",
|
||||
"async def reset_hash_password_user(\n",
|
||||
" request: Request,\n",
|
||||
" response: Response,\n",
|
||||
" data: ResetPasswordRequest = Body(...),\n",
|
||||
|
||||
4
main.py
4
main.py
@ -1468,8 +1468,8 @@ async def restore_page(request: Request, token: str):
|
||||
)
|
||||
|
||||
|
||||
@app.post("/api/v2/reset-password")
|
||||
async def reset_password_user(
|
||||
@app.post("/api/reset-hash-password")
|
||||
async def reset_hash_password_user(
|
||||
request: Request,
|
||||
response: Response,
|
||||
data: ResetPasswordRequest = Body(...),
|
||||
|
||||
@ -111,7 +111,7 @@ async function getSHA256Hash(message) {
|
||||
}
|
||||
const hash = await getSHA256Hash(newPass);
|
||||
try {
|
||||
const res = await fetch('/api/v2/reset-password', {
|
||||
const res = await fetch('/api/reset-hash-password', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user