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 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 89488b028..2f132837a 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 36d689e06..704a2c7d3 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 cb53e05d5..3ceefc97a 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 552bea80c..b956e54e5 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", "type": "module", "private": true, diff --git a/packages/ui/src/hooks/use-sie.ts b/packages/ui/src/hooks/use-sie.ts index cae027209..b958fa772 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, }; };