feat: Add password visibility toggle to password fields w SensitiveInput.svelte component

This commit is contained in:
silentoplayz
2025-08-03 16:07:12 -04:00
parent 7c29084a19
commit 56eeed6277
4 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -18,6 +18,7 @@
import Spinner from '$lib/components/common/Spinner.svelte';
import OnBoarding from '$lib/components/OnBoarding.svelte';
import SensitiveInput from '$lib/components/common/SensitiveInput.svelte';
const i18n = getContext('i18n');
@@ -306,7 +307,7 @@
<label for="password" class="text-sm font-medium text-left mb-1 block"
>{$i18n.t('Password')}</label
>
<input
<SensitiveInput
bind:value={password}
type="password"
id="password"
@@ -325,7 +326,7 @@
class="text-sm font-medium text-left mb-1 block"
>{$i18n.t('Confirm Password')}</label
>
<input
<SensitiveInput
bind:value={confirmPassword}
type="password"
id="confirm-password"