0
Fork 0
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:
Gao Sun 2022-12-13 17:18:43 +08:00 committed by GitHub
commit 09d7abad15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 5 deletions

View file

@ -0,0 +1,5 @@
---
"@logto/ui": patch
---
Fix a bug to show forgot password when only SMS connector is configured

View file

@ -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",

View file

@ -1,5 +1,7 @@
# Change Log
## 1.0.0-beta.17
## 1.0.0-beta.16
### Patch Changes

View file

@ -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",

View file

@ -1,5 +1,7 @@
# Change Log
## 1.0.0-beta.17
## 1.0.0-beta.16
### Patch Changes

View file

@ -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>",

View file

@ -1,5 +1,7 @@
# Change Log
## 1.0.0-beta.17
## 1.0.0-beta.16
### Patch Changes

View file

@ -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",

View file

@ -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

View file

@ -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,

View file

@ -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,
};
};