Skip to content

Commit

Permalink
chore: Release v1.4.0 - See CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Oct 24, 2023
1 parent c3d4a5f commit 0955fbd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.4.0 (October 22nd, 2023)

- support request password change and request email change for both name and email as identifier

## 1.3.9 (October 22nd, 2023)

- fix delete tokens from redis on user deletion
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@restorecommerce/identity-srv",
"version": "1.3.9",
"version": "1.4.0",
"description": "Restorecommerce identity service",
"main": "lib/start.js",
"author": "n-fuse GmbH",
Expand Down
8 changes: 4 additions & 4 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1451,8 +1451,8 @@ export class UserService extends ServiceBase<UserListResponse, UserList> impleme
async requestPasswordChange(request: RequestPasswordChangeRequest, context): Promise<DeepPartial<OperationStatusObj>> {
const logger = this.logger;
const identifier = request.identifier;
// check for the identifier against name
const filters = getNameFilter(identifier);
// check for the identifier against name or email
const filters = getDefaultFilter(identifier);
let user;
const users = await super.read(ReadRequest.fromPartial({ filters }), context);
if (users.total_count === 1) {
Expand Down Expand Up @@ -1562,8 +1562,8 @@ export class UserService extends ServiceBase<UserListResponse, UserList> impleme
const new_email = request.new_email;
const subject = request.subject;
let acsResponse: DecisionResponse;
// check for the identifier against name
const filters = getNameFilter(identifier);
// check for the identifier against name or email
const filters = getDefaultFilter(identifier);
const users = await super.read(ReadRequest.fromPartial({ filters }), context);
if (!users || users.total_count === 0) {
logger.debug('user does not exist', { identifier });
Expand Down

0 comments on commit 0955fbd

Please sign in to comment.