Use proper attribute name in UI
Fixes: #25827 Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
This commit is contained in:
parent
b807ea5828
commit
0bf1fe3eb3
1 changed files with 13 additions and 5 deletions
|
@ -24,7 +24,7 @@ import {
|
|||
} from "../components/time-selector/TimeSelector";
|
||||
import { useServerInfo } from "../context/server-info/ServerInfoProvider";
|
||||
import { useWhoAmI } from "../context/whoami/WhoAmI";
|
||||
import { convertToFormValues, sortProviders } from "../util";
|
||||
import { beerify, convertToFormValues, sortProviders } from "../util";
|
||||
import useIsFeatureEnabled, { Feature } from "../utils/useIsFeatureEnabled";
|
||||
|
||||
import "./realm-settings-section.css";
|
||||
|
@ -473,7 +473,9 @@ export const RealmSettingsTokensTab = ({
|
|||
id="email-verification"
|
||||
>
|
||||
<Controller
|
||||
name="attributes.actionTokenGeneratedByUserLifespan-verify-email"
|
||||
name={`attributes.${beerify(
|
||||
"actionTokenGeneratedByUserLifespan.verify-email",
|
||||
)}`}
|
||||
defaultValue=""
|
||||
control={form.control}
|
||||
render={({ field }) => (
|
||||
|
@ -493,7 +495,9 @@ export const RealmSettingsTokensTab = ({
|
|||
id="idp-acct-label"
|
||||
>
|
||||
<Controller
|
||||
name="attributes.actionTokenGeneratedByUserLifespan-idp-verify-account-via-email"
|
||||
name={`attributes.${beerify(
|
||||
"actionTokenGeneratedByUserLifespan.idp-verify-account-via-email",
|
||||
)}`}
|
||||
defaultValue={""}
|
||||
control={form.control}
|
||||
render={({ field }) => (
|
||||
|
@ -513,7 +517,9 @@ export const RealmSettingsTokensTab = ({
|
|||
id="forgot-password-label"
|
||||
>
|
||||
<Controller
|
||||
name="attributes.actionTokenGeneratedByUserLifespan-reset-credentials"
|
||||
name={`attributes.${beerify(
|
||||
"actionTokenGeneratedByUserLifespan.reset-credentials",
|
||||
)}`}
|
||||
defaultValue={""}
|
||||
control={form.control}
|
||||
render={({ field }) => (
|
||||
|
@ -533,7 +539,9 @@ export const RealmSettingsTokensTab = ({
|
|||
id="execute-actions"
|
||||
>
|
||||
<Controller
|
||||
name="attributes.actionTokenGeneratedByUserLifespan-execute-actions"
|
||||
name={`attributes.${beerify(
|
||||
"actionTokenGeneratedByUserLifespan.execute-actions",
|
||||
)}`}
|
||||
defaultValue={""}
|
||||
control={form.control}
|
||||
render={({ field }) => (
|
||||
|
|
Loading…
Reference in a new issue