Skip to content
Snippets Groups Projects

Update session data when updating the password with UpdateUser

Merged Valentin Rigal requested to merge pwd-update-session into master
2 files
+ 8
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -57,6 +57,12 @@ class TestRegistration(FixtureAPITestCase):
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.user.refresh_from_db()
self.assertTrue(self.user.check_password("N€wP4$5w0Rd"))
# Ensure client session is still valid
response = self.client.get(
reverse("api:user-retrieve"),
format="json",
)
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_update_display_name(self):
self.client.force_login(self.user)
Loading