Skip to content

Commit c14579a

Browse files
committed
fix(login): update form autocomplete attributes for improved security and user experience
1 parent 6207e8d commit c14579a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dashboard/src/pages/login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ export const Login: FC = () => {
189189
<span className="text-gray-600 dark:text-gray-400">{t('login.welcomeBack')}</span>
190190
</div>
191191
<div className="mx-auto w-full max-w-[300px] pt-4">
192-
<form onSubmit={handleSubmit(handleLogin)} autoComplete="off">
192+
<form onSubmit={handleSubmit(handleLogin)} autoComplete="on">
193193
<div className="mt-4 flex flex-col gap-y-2">
194194
<Input className="py-5" placeholder={t('username')} autoComplete="username" {...register('username')} error={t(errors?.username?.message as string)} />
195-
<PasswordInput className="py-5" placeholder={t('password')} autoComplete="new-password" {...register('password')} error={t(errors?.password?.message as string)} />
195+
<PasswordInput className="py-5" placeholder={t('password')} autoComplete="current-password" {...register('password')} error={t(errors?.password?.message as string)} />
196196
{((error && error.data) || (miniAppError && miniAppError.data)) && (
197197
<Alert className="mt-2" variant="destructive">
198198
<CircleAlertIcon size="18px" />

0 commit comments

Comments
 (0)