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