From 4d0806d3e8eee08d30fca2026ca22f4e9b3f27ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Dahl=C3=B6?= Date: Fri, 26 Apr 2024 02:26:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=8B=20refactor:=20allow=20paste=20in?= =?UTF-8?q?=20confirm=20field=20when=20resetting=20passwords=20(#2542)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Disabled paste prevention in the confirm password field when resetting passwords. * chore(ResetPassword): remove comments --------- Co-authored-by: Danny Avila --- client/src/components/Auth/ResetPassword.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/src/components/Auth/ResetPassword.tsx b/client/src/components/Auth/ResetPassword.tsx index bf6aa7944a..52560828f2 100644 --- a/client/src/components/Auth/ResetPassword.tsx +++ b/client/src/components/Auth/ResetPassword.tsx @@ -139,11 +139,6 @@ function ResetPassword() { type="password" id="confirm_password" aria-label={localize('com_auth_password_confirm')} - // uncomment to prevent pasting in confirm field - onPaste={(e) => { - e.preventDefault(); - return false; - }} {...register('confirm_password', { validate: (value) => value === password || localize('com_auth_password_not_match'),