📋 refactor: allow paste in confirm field when resetting passwords (#2542)

* Disabled paste prevention in the confirm password field when resetting passwords.

* chore(ResetPassword): remove comments

---------

Co-authored-by: Danny Avila <danacordially@gmail.com>
This commit is contained in:
Martin Dahlö 2024-04-26 02:26:33 +02:00 committed by GitHub
parent 5b5f9b950b
commit 4d0806d3e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'),