diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/forgotPassword.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/forgotPassword.tsx index c8eb3fcb0de1..81f695e1e5b0 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/forgotPassword.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/forgotPassword.tsx @@ -57,6 +57,7 @@ export default function ForgotPassword() { id="email" type="email" name="email" + autoComplete="email" placeholder="E-Mail Address" value={email} setValue={setEmail} diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/input.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/input.tsx index 30ccfb5c514a..502c1c95cf15 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/input.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/input.tsx @@ -48,6 +48,7 @@ export default function Input(props: InputProps) { } const currentTarget = event.currentTarget if (error != null) { + currentTarget.setCustomValidity('') currentTarget.setCustomValidity( currentTarget.checkValidity() || shouldReportValidityRef?.current === false diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/login.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/login.tsx index c75d2fcd2fe8..dfc7d5f7c2cd 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/login.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/login.tsx @@ -113,6 +113,7 @@ export default function Login() { id="email" type="email" name="email" + autoComplete="email" placeholder="E-Mail Address" value={email} setValue={setEmail} @@ -137,6 +138,7 @@ export default function Login() { id="password" type="password" name="password" + autoComplete="current-password" placeholder="Password" pattern={validation.PASSWORD_PATTERN} error={validation.PASSWORD_ERROR} diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/registration.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/registration.tsx index 80480b09d2d2..f8573f4dd097 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/registration.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/registration.tsx @@ -75,6 +75,7 @@ export default function Registration() { id="email" type="email" name="email" + autoComplete="email" placeholder="E-Mail Address" value={email} setValue={setEmail} @@ -98,6 +99,7 @@ export default function Registration() { id="password" type="password" name="password" + autoComplete="new-password" placeholder="Password" pattern={validation.PASSWORD_PATTERN} error={validation.PASSWORD_ERROR} @@ -123,6 +125,7 @@ export default function Registration() { id="password_confirmation" type="password" name="password_confirmation" + autoComplete="new-password" placeholder="Confirm Password" pattern={string.regexEscape(password)} error={validation.CONFIRM_PASSWORD_ERROR} diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/resetPassword.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/resetPassword.tsx index 5396303592e4..14db678963fa 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/resetPassword.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/resetPassword.tsx @@ -86,6 +86,7 @@ export default function ResetPassword() { id="email" type="email" name="email" + autoComplete="email" placeholder="E-Mail Address" value={email} setValue={setEmail} @@ -108,6 +109,7 @@ export default function ResetPassword() { id="code" type="text" name="code" + autoComplete="one-time-code" placeholder="Confirmation Code" value={code} setValue={setCode} @@ -131,6 +133,7 @@ export default function ResetPassword() { id="new_password" type="password" name="new_password" + autoComplete="new-password" placeholder="New Password" pattern={validation.PASSWORD_PATTERN} error={validation.PASSWORD_ERROR} @@ -156,6 +159,7 @@ export default function ResetPassword() { id="new_password_confirm" type="password" name="new_password_confirm" + autoComplete="new-password" placeholder="Confirm New Password" pattern={string.regexEscape(newPassword)} error={validation.CONFIRM_PASSWORD_ERROR} diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/setUsername.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/setUsername.tsx index b1f9a77ed241..d55d7d273d3c 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/setUsername.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/authentication/components/setUsername.tsx @@ -52,6 +52,7 @@ export default function SetUsername() { id="username" type="text" name="username" + autoComplete="off" placeholder="Username" value={username} setValue={setUsername} diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/components/changePasswordModal.tsx b/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/components/changePasswordModal.tsx index 71899602a179..0d638cedbb4b 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/components/changePasswordModal.tsx +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/components/changePasswordModal.tsx @@ -63,6 +63,7 @@ export default function ChangePasswordModal() { id="old_password" type="password" name="old_password" + autoComplete="current-password" placeholder="Old Password" pattern={validation.PASSWORD_PATTERN} error={validation.PASSWORD_ERROR} @@ -84,6 +85,7 @@ export default function ChangePasswordModal() { id="new_password" type="password" name="new_password" + autoComplete="new-password" placeholder="New Password" pattern={validation.PASSWORD_PATTERN} error={validation.PASSWORD_ERROR} @@ -105,6 +107,7 @@ export default function ChangePasswordModal() { id="confirm_new_password" type="password" name="confirm_new_password" + autoComplete="new-password" placeholder="Confirm New Password" pattern={string.regexEscape(newPassword)} error={validation.CONFIRM_PASSWORD_ERROR}