fix: continue password reset after email request
This commit is contained in:
@@ -305,6 +305,7 @@ class EmailAuthenticationTest(unittest.TestCase):
|
||||
client = app.test_client()
|
||||
response = self.form(client, "/forgot-password", email="alice@example.com")
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.assertEqual(response.location, "/verify/reset")
|
||||
verify = client.get("/verify/reset")
|
||||
response = client.post("/verify/reset", data={"csrf_token": self.csrf(verify), "code": "123456"})
|
||||
self.assertEqual(response.location, "/set-password")
|
||||
|
||||
Reference in New Issue
Block a user