Update main.py
Browse files
main.py
CHANGED
@@ -265,7 +265,7 @@ async def reset_password_get(request: Request, token: str):
|
|
265 |
|
266 |
@app.post("/password-reset-request")
|
267 |
async def password_reset_request(email: str = Form(...), db: Session = Depends(get_db)):
|
268 |
-
user = db
|
269 |
|
270 |
|
271 |
if not user:
|
|
|
265 |
|
266 |
@app.post("/password-reset-request")
|
267 |
async def password_reset_request(email: str = Form(...), db: Session = Depends(get_db)):
|
268 |
+
user = get_user_by_email(db, email)
|
269 |
|
270 |
|
271 |
if not user:
|