mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
Merge pull request #2659 from logto-io/gao-fix-sie-forget-pwd-enabled
fix(ui): forget pwd should be enabled correctly
This commit is contained in:
commit
09d7abad15
11 changed files with 25 additions and 5 deletions
.changeset
packages
console
core
integration-tests
ui
5
.changeset/neat-snakes-smash.md
Normal file
5
.changeset/neat-snakes-smash.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@logto/ui": patch
|
||||
---
|
||||
|
||||
Fix a bug to show forgot password when only SMS connector is configured
|
|
@ -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",
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# Change Log
|
||||
|
||||
## 1.0.0-beta.17
|
||||
|
||||
## 1.0.0-beta.16
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -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. <contact@silverhand.io>",
|
||||
"homepage": "https://github.com/logto-io/logto#readme",
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# Change Log
|
||||
|
||||
## 1.0.0-beta.17
|
||||
|
||||
## 1.0.0-beta.16
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -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. <contact@silverhand.io>",
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# Change Log
|
||||
|
||||
## 1.0.0-beta.17
|
||||
|
||||
## 1.0.0-beta.16
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -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. <contact@silverhand.io>",
|
||||
"license": "MPL-2.0",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue