mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-10-31 09:28:45 +08:00 
			
		
		
		
	Fix #609: make behavior more consistent on request verify token
Now, it always returns 202 even if the user is already verified
This commit is contained in:
		| @ -126,10 +126,8 @@ class TestVerifyTokenRequest: | ||||
|         input_user = verified_user | ||||
|         json = {"email": input_user.email} | ||||
|         response = await test_app_client.post("/request-verify-token", json=json) | ||||
|         assert response.status_code == status.HTTP_202_ACCEPTED | ||||
|         assert after_verification_request.called is False | ||||
|         assert response.status_code == status.HTTP_400_BAD_REQUEST | ||||
|         data = cast(Dict[str, Any], response.json()) | ||||
|         assert data["detail"] == ErrorCode.VERIFY_USER_ALREADY_VERIFIED | ||||
|  | ||||
|     async def test_user_inactive_valid_request( | ||||
|         self, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 François Voron
					François Voron