Skip to content

Commit

Permalink
remove account identifier from url
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxIsJoe committed Jan 17, 2024
1 parent 4b83cfa commit 8d95ffb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/accounts/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Meta:

def validate(self, data):
email = data.get("email")
account = Account.objects.filter(email=email).first() # Assuming you're using the User model
account = Account.objects.filter(email=email).first()
# Note: Make this silently fail later; users don't need to know about this.
if account is None:
raise serializers.ValidationError("Account with this email doesn't exist.")
Expand Down
2 changes: 1 addition & 1 deletion src/accounts/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
name="request-verification-token",
),
path("verify-account", VerifyAccountView.as_view(), name="verify-account"),
path("change-password/<str:unique_identifier>/<str:token>", ChangePasswordView.as_view(), name="change-passwordd"),
path("change-password/<str:token>", ChangePasswordView.as_view(), name="change-passwordd"),
path("change-password/", RequestPasswordResetView.as_view(), name="change-password"),
]

0 comments on commit 8d95ffb

Please sign in to comment.