mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-23 08:26:48 +00:00
fix(login): use default titles for password pages (#10904)
# Which Problems Are Solved This change shows the default titles for password pages instead of dynamically showing the user name. # How the Problems Are Solved Both pages now show only the translated title text (verify.title and change.title respectively) instead of falling back to showing the user's display name. Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
@@ -50,7 +50,9 @@ export default async function Page(props: { searchParams: Promise<Record<string
|
||||
return (
|
||||
<DynamicTheme branding={branding}>
|
||||
<div className="flex flex-col space-y-4">
|
||||
<h1>{sessionFactors?.factors?.user?.displayName ?? <Translated i18nKey="change.title" namespace="password" />}</h1>
|
||||
<h1>
|
||||
<Translated i18nKey="change.title" namespace="password" />
|
||||
</h1>
|
||||
<p className="ztdl-p mb-6 block">
|
||||
<Translated i18nKey="change.description" namespace="password" />
|
||||
</p>
|
||||
|
||||
@@ -61,7 +61,9 @@ export default async function Page(props: { searchParams: Promise<Record<string
|
||||
return (
|
||||
<DynamicTheme branding={branding}>
|
||||
<div className="flex flex-col space-y-4">
|
||||
<h1>{sessionFactors?.factors?.user?.displayName ?? <Translated i18nKey="verify.title" namespace="password" />}</h1>
|
||||
<h1>
|
||||
<Translated i18nKey="verify.title" namespace="password" />
|
||||
</h1>
|
||||
<p className="ztdl-p">
|
||||
<Translated i18nKey="verify.description" namespace="password" />
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user