diff --git a/backend/donations/views/account_management.py b/backend/donations/views/account_management.py index c693fbc0..ae881f21 100644 --- a/backend/donations/views/account_management.py +++ b/backend/donations/views/account_management.py @@ -45,8 +45,12 @@ def post(self, request, *args, **kwargs): except self.user_model.DoesNotExist: user = None - if user: + if user and not user.is_ngohub_user: self._send_password_reset_email(user) + elif user.is_ngohub_user: + # TODO: send an e-mail to the user + # notify them that they should log in through NGO Hub + pass context["found"] = _("If the email address is valid, you will receive an email with instructions.")