- {/* Change Password */}
+ {/* Password Section - Conditional based on auth method */}
-
Change Password
+ {hasPassword ? 'Change Password' : 'Add Password'}
- Update your password to keep your account secure. {user?.identities?.some(i => i.provider === 'totp') && 'Two-factor authentication will be required.'}
+ {hasPassword ? (
+ <>Update your password to keep your account secure. {user?.identities?.some(i => i.provider === 'totp') && 'Two-factor authentication will be required.'}>
+ ) : (
+ 'Add password authentication to your account for increased security and backup access.'
+ )}
-
+ {hasPassword ? (
+
+ ) : (
+
+ )}