@@ -24,7 +24,7 @@ import {
2424} from "../components/time-selector/TimeSelector" ;
2525import { useServerInfo } from "../context/server-info/ServerInfoProvider" ;
2626import { useWhoAmI } from "../context/whoami/WhoAmI" ;
27- import { convertToFormValues , sortProviders } from "../util" ;
27+ import { beerify , convertToFormValues , sortProviders } from "../util" ;
2828import useIsFeatureEnabled , { Feature } from "../utils/useIsFeatureEnabled" ;
2929
3030import "./realm-settings-section.css" ;
@@ -473,7 +473,9 @@ export const RealmSettingsTokensTab = ({
473473 id = "email-verification"
474474 >
475475 < Controller
476- name = "attributes.actionTokenGeneratedByUserLifespan-verify-email"
476+ name = { `attributes.${ beerify (
477+ "actionTokenGeneratedByUserLifespan.verify-email" ,
478+ ) } `}
477479 defaultValue = ""
478480 control = { form . control }
479481 render = { ( { field } ) => (
@@ -493,7 +495,9 @@ export const RealmSettingsTokensTab = ({
493495 id = "idp-acct-label"
494496 >
495497 < Controller
496- name = "attributes.actionTokenGeneratedByUserLifespan-idp-verify-account-via-email"
498+ name = { `attributes.${ beerify (
499+ "actionTokenGeneratedByUserLifespan.idp-verify-account-via-email" ,
500+ ) } `}
497501 defaultValue = { "" }
498502 control = { form . control }
499503 render = { ( { field } ) => (
@@ -513,7 +517,9 @@ export const RealmSettingsTokensTab = ({
513517 id = "forgot-password-label"
514518 >
515519 < Controller
516- name = "attributes.actionTokenGeneratedByUserLifespan-reset-credentials"
520+ name = { `attributes.${ beerify (
521+ "actionTokenGeneratedByUserLifespan.reset-credentials" ,
522+ ) } `}
517523 defaultValue = { "" }
518524 control = { form . control }
519525 render = { ( { field } ) => (
@@ -533,7 +539,9 @@ export const RealmSettingsTokensTab = ({
533539 id = "execute-actions"
534540 >
535541 < Controller
536- name = "attributes.actionTokenGeneratedByUserLifespan-execute-actions"
542+ name = { `attributes.${ beerify (
543+ "actionTokenGeneratedByUserLifespan.execute-actions" ,
544+ ) } `}
537545 defaultValue = { "" }
538546 control = { form . control }
539547 render = { ( { field } ) => (
0 commit comments