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
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",
|
"fifty-balloons-taste",
|
||||||
"green-geese-train",
|
"green-geese-train",
|
||||||
"grumpy-clocks-refuse",
|
"grumpy-clocks-refuse",
|
||||||
|
"neat-snakes-smash",
|
||||||
"quick-turtles-joke",
|
"quick-turtles-joke",
|
||||||
"thin-oranges-act",
|
"thin-oranges-act",
|
||||||
"tricky-mirrors-act",
|
"tricky-mirrors-act",
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 1.0.0-beta.17
|
||||||
|
|
||||||
## 1.0.0-beta.16
|
## 1.0.0-beta.16
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@logto/console",
|
"name": "@logto/console",
|
||||||
"version": "1.0.0-beta.16",
|
"version": "1.0.0-beta.17",
|
||||||
"description": "> TODO: description",
|
"description": "> TODO: description",
|
||||||
"author": "Silverhand Inc. <contact@silverhand.io>",
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
||||||
"homepage": "https://github.com/logto-io/logto#readme",
|
"homepage": "https://github.com/logto-io/logto#readme",
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 1.0.0-beta.17
|
||||||
|
|
||||||
## 1.0.0-beta.16
|
## 1.0.0-beta.16
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@logto/core",
|
"name": "@logto/core",
|
||||||
"version": "1.0.0-beta.16",
|
"version": "1.0.0-beta.17",
|
||||||
"description": "The open source identity solution.",
|
"description": "The open source identity solution.",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"author": "Silverhand Inc. <contact@silverhand.io>",
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 1.0.0-beta.17
|
||||||
|
|
||||||
## 1.0.0-beta.16
|
## 1.0.0-beta.16
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@logto/integration-tests",
|
"name": "@logto/integration-tests",
|
||||||
"version": "1.0.0-beta.16",
|
"version": "1.0.0-beta.17",
|
||||||
"description": "Integration tests for Logto.",
|
"description": "Integration tests for Logto.",
|
||||||
"author": "Silverhand Inc. <contact@silverhand.io>",
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
# Change Log
|
# 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
|
## 1.0.0-beta.16
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@logto/ui",
|
"name": "@logto/ui",
|
||||||
"version": "1.0.0-beta.16",
|
"version": "1.0.0-beta.17",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|
|
@ -25,7 +25,9 @@ export const useForgotPasswordSettings = () => {
|
||||||
const { forgotPassword } = experienceSettings ?? {};
|
const { forgotPassword } = experienceSettings ?? {};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isForgotPasswordEnabled: Boolean(forgotPassword?.email ?? forgotPassword?.sms),
|
isForgotPasswordEnabled: Boolean(
|
||||||
|
forgotPassword && (forgotPassword.email || forgotPassword.sms)
|
||||||
|
),
|
||||||
...forgotPassword,
|
...forgotPassword,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue