Skip to content
Snippets Groups Projects

Warn the user when the password reset link is expired

Merged ml bonhomme requested to merge pwd-reset-email into master
2 files
+ 4
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -75,7 +75,7 @@ class TestPasswordReset(FixtureAPITestCase):
},
format="json",
)
self.assertEqual(resp.status_code, status.HTTP_201_CREATED)
self.assertEqual(resp.status_code, status.HTTP_400_BAD_REQUEST)
self.user.refresh_from_db()
self.assertFalse(self.user.check_password("S3cr37Pa$$w0rd"))
self.assertEqual(token_gen_mock.check_token.call_count, 1)
Loading