def send_registration_email(email_to: EmailStr, farm: Farm = Depends(get_farm_by_id)): """ Test emails. """ link = generate_farm_authorization_link(farm.id) send_farm_authorization_email(email_to=email_to, link=link, farm=farm) return {"msg": "Authorization email sent to: " + email_to}
def farm_auth_link(farm: Farm = Depends(get_farm_by_id), ): link = generate_farm_authorization_link(farm.id) return link