Skip to content

fix: scope in-store customer password-token to the path's store - #462

Merged
jsm1t merged 1 commit into
mainfrom
fix/password-reset-store-filter
Nov 19, 2026
Merged

jsm1t merged 1 commit into
mainfrom
fix/password-reset-store-filter

Conversation

@jsm1t

@jsm1t jsm1t commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

POST /in-store/key={storeKey}/customers/password-token looked up the customer by email only, so when the same email exists in several stores it could issue a token for a customer in another store. The lookup now applies the same store predicate as the other in-store customer endpoints, and returns ResourceNotFound when the email only exists in another store.

@changeset-bot

changeset-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 48044f8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@labdigital/commercetools-mock Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jsm1t
jsm1t merged commit fa6f2e2 into main Nov 19, 2026
11 checks passed
@jsm1t
jsm1t deleted the fix/password-reset-store-filter branch November 19, 2026 15:45
jsm1t pushed a commit that referenced this pull request Nov 19, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @labdigital/commercetools-mock@5.1.2

### Patch Changes

- [#462](#462)
[`fa6f2e2`](fa6f2e2)
Thanks [@jsm1t](https://github.com/jsm1t)! - Scope the in-store customer
`password-token` endpoint to the store in the path, so it no longer
issues a token for a customer with the same email in another store.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants