Implement forgot password

This commit is contained in:
2020-10-08 20:47:10 +02:00
parent 3be567c8ac
commit 0b53bbaa70
6 changed files with 85 additions and 8 deletions

View File

@@ -25,10 +25,7 @@ def test_registration():
def test_otp_verification(get_test_db):
user = get_test_db.query(Users).filter(Users.email == "oyvey@hotmail.com").first()
data = {
"access_key": user.access_key,
"otp": user.otp,
}
data = {"access_key": user.access_key, "otp": user.otp}
response = client.post("/otpVerification", json=data)
assert response.status_code == 200
@@ -46,8 +43,14 @@ def test_login():
def test_resend_otp():
data = {
"email": "testorganizer@odyfo.com",
}
data = {"email": "testorganizer@odyfo.com"}
response = client.post("/resendOTP", json=data)
assert response.status_code == 200
def test_forgot_password():
data = {"email": "oyvey@hotmail.com"}
response = client.post("/forgot_password", json=data)
assert response.status_code == 200