Skip to content

Commit

Permalink
Fix ngo hub users requesting a password reset
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Jan 9, 2025
1 parent 38935ec commit 964d0e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/donations/views/account_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 964d0e6

Please sign in to comment.