Fix orphaned password state

This commit is contained in:
gpt-engineer-app[bot]
2025-10-14 15:07:27 +00:00
parent d44e47f177
commit 41757096c8
2 changed files with 87 additions and 3 deletions

View File

@@ -223,9 +223,16 @@ export function SecurityTab() {
<CardHeader>
<CardDescription>
{hasPassword ? (
<>Update your password to keep your account secure. {user?.identities?.some(i => i.provider === 'totp') && 'Two-factor authentication will be required.'}</>
<>Update your password to keep your account secure.</>
) : (
'Add password authentication to your account for increased security and backup access.'
<>
Add password authentication to your account for increased security and backup access.
{identities.length > 0 && (
<span className="block mt-2 text-amber-600 dark:text-amber-400">
If you've previously set a password but don't see it here, click "Add Password" to re-verify your authentication.
</span>
)}
</>
)}
</CardDescription>
</CardHeader>