From b3fb004232cb76a19c2daa3c3e39984084a0b9b1 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Tue, 13 Dec 2022 15:49:58 +0800 Subject: [PATCH 1/3] fix(ui): forget pwd should be enabled correctly --- packages/ui/src/hooks/use-sie.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/hooks/use-sie.ts b/packages/ui/src/hooks/use-sie.ts index 683524c6e..525b27267 100644 --- a/packages/ui/src/hooks/use-sie.ts +++ b/packages/ui/src/hooks/use-sie.ts @@ -25,7 +25,9 @@ export const useForgotPasswordSettings = () => { const { forgotPassword } = experienceSettings ?? {}; return { - isForgotPasswordEnabled: Boolean(forgotPassword?.email ?? forgotPassword?.sms), + isForgotPasswordEnabled: Boolean( + forgotPassword && (forgotPassword.email || forgotPassword.sms) + ), ...forgotPassword, }; }; From 02cc9abd832a71322b223701070d6239108d4d5b Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Tue, 13 Dec 2022 15:51:31 +0800 Subject: [PATCH 2/3] chore: add changeset --- .changeset/neat-snakes-smash.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/neat-snakes-smash.md diff --git a/.changeset/neat-snakes-smash.md b/.changeset/neat-snakes-smash.md new file mode 100644 index 000000000..5a36dab7c --- /dev/null +++ b/.changeset/neat-snakes-smash.md @@ -0,0 +1,5 @@ +--- +"@logto/ui": patch +--- + +Fix a bug to show forgot password when only SMS connector is configured From 8a32d7aad0714a851ca588c5a68f57dd2357afd0 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Tue, 13 Dec 2022 16:18:49 +0800 Subject: [PATCH 3/3] release: version packages --- .changeset/pre.json | 1 + packages/console/CHANGELOG.md | 2 ++ packages/console/package.json | 2 +- packages/core/CHANGELOG.md | 2 ++ packages/core/package.json | 2 +- packages/integration-tests/CHANGELOG.md | 2 ++ packages/integration-tests/package.json | 2 +- packages/ui/CHANGELOG.md | 6 ++++++ packages/ui/package.json | 2 +- 9 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 8a751c82e..8790e9bf9 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -19,6 +19,7 @@ "fifty-balloons-taste", "green-geese-train", "grumpy-clocks-refuse", + "neat-snakes-smash", "quick-turtles-joke", "thin-oranges-act", "tricky-mirrors-act", diff --git a/packages/console/CHANGELOG.md b/packages/console/CHANGELOG.md index 304e08772..4fe2cf975 100644 --- a/packages/console/CHANGELOG.md +++ b/packages/console/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 1.0.0-beta.17 + ## 1.0.0-beta.16 ### Patch Changes diff --git a/packages/console/package.json b/packages/console/package.json index 7cbfba60d..6912e76be 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -1,6 +1,6 @@ { "name": "@logto/console", - "version": "1.0.0-beta.16", + "version": "1.0.0-beta.17", "description": "> TODO: description", "author": "Silverhand Inc. ", "homepage": "https://github.com/logto-io/logto#readme", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index a6f759b09..58108d9d0 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 1.0.0-beta.17 + ## 1.0.0-beta.16 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index dd7ec4f25..f1b68fda1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@logto/core", - "version": "1.0.0-beta.16", + "version": "1.0.0-beta.17", "description": "The open source identity solution.", "main": "build/index.js", "author": "Silverhand Inc. ", diff --git a/packages/integration-tests/CHANGELOG.md b/packages/integration-tests/CHANGELOG.md index 3a541ea2a..20aca6467 100644 --- a/packages/integration-tests/CHANGELOG.md +++ b/packages/integration-tests/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 1.0.0-beta.17 + ## 1.0.0-beta.16 ### Patch Changes diff --git a/packages/integration-tests/package.json b/packages/integration-tests/package.json index 59b892dc4..6b85b6150 100644 --- a/packages/integration-tests/package.json +++ b/packages/integration-tests/package.json @@ -1,6 +1,6 @@ { "name": "@logto/integration-tests", - "version": "1.0.0-beta.16", + "version": "1.0.0-beta.17", "description": "Integration tests for Logto.", "author": "Silverhand Inc. ", "license": "MPL-2.0", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index a752ee73d..38c1e57d1 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 1.0.0-beta.17 + +### Patch Changes + +- 02cc9abd: Fix a bug to show forgot password when only SMS connector is configured + ## 1.0.0-beta.16 ### Patch Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 73f4e0f30..eb60adfbd 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@logto/ui", - "version": "1.0.0-beta.16", + "version": "1.0.0-beta.17", "license": "MPL-2.0", "private": true, "scripts": {